public Task SendAsync(IdentityMessage message)
        {
            // Plug in your email service here to send an email.
            var emailService = new PersonalEmail();
            var newMail      = new MailMessage("*****@*****.**", message.Destination);

            newMail.Body       = message.Body;
            newMail.Subject    = message.Subject;
            newMail.IsBodyHtml = true;

            return(emailService.SendAsync(newMail));
        }
        public Task SendAsync(IdentityMessage message)
        {
            var emailService = new PersonalEmail();

            var mailMessage = new MailMessage("*****@*****.**", message.Destination);

            mailMessage.Body       = message.Body;
            mailMessage.Subject    = message.Subject;
            mailMessage.IsBodyHtml = true;

            return(emailService.SendAsync(mailMessage));
        }
        public async Task SendAsync(IdentityMessage message)
        {
            // Plug in your email service here to send an email.
            var newMail = new MailMessage(WebConfigurationManager.AppSettings["emailto"], message.Destination);

            newMail.Body       = message.Body;
            newMail.Subject    = message.Subject;
            newMail.IsBodyHtml = true;

            await PersonalEmail.SendAsync(newMail);

            return;
        }
Beispiel #4
0
        public Task SendAsync(IdentityMessage message)
        {
            var personalEmailService = new PersonalEmail();

            var mailMessage = new MailMessage(
                WebConfigurationManager.AppSettings["emailto"],
                message.Destination
                );

            mailMessage.Body       = message.Body;
            mailMessage.Subject    = message.Subject;
            mailMessage.IsBodyHtml = true;

            return(personalEmailService.SendAsync(mailMessage));
        }