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 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)); }