Ejemplo n.º 1
0
        public async Task <ActionResult> Index()
        {
            var emailer = new Emails.Mailer();
            var str     = await emailer.SendTestEmail("*****@*****.**", "Subject line", new TestViewData
            {
                Message = "Hi from WebApp.Netframework"
            });

            return(Content(str));
        }
Ejemplo n.º 2
0
        static async Task Main(string[] args)
        {
            var emailer = new Emails.Mailer();
            await emailer.SendTestEmail("*****@*****.**", "Subject line", new TestViewData
            {
                Message = "Hi from .Net framework console"
            });

            Console.WriteLine("Done.");
            Console.WriteLine("Hit Enter...");
            Console.ReadLine();
        }