public async Task SendAsync(IdentityMessage message)
        {
            // Plug in your email service here to send an email.
            var svc = new MyEmailService();

            using (svc)
            {
                await svc.SendAsync(message);
            }

            return;
        }
Ejemplo n.º 2
0
        public Task SendAsync(IdentityMessage message)
        {
            // Plug in your email service here to send an email.
            var MyEmailService = new MyEmailService();
            var mailMessage    = new MailMessage(
                WebConfigurationManager.AppSettings["emailto"],
                message.Destination
                );

            mailMessage.Body       = message.Body;
            mailMessage.Subject    = message.Subject;
            mailMessage.IsBodyHtml = true;
            return(MyEmailService.SendAsync(mailMessage));
        }