public Task SendAsync(IdentityMessage message) { // Plug in your email service here to send an email. MyEmailService myEmailService = new MyEmailService(); myEmailService.Send(message.Destination, message.Subject, message.Body); return(Task.FromResult(0)); }
public static void SendNotification(ApplicationUser user, Notification notification) { MyEmailService emailService = new MyEmailService(); emailService.Send(user.Email, "MyBugTracker Notification, Re " + notification.Ticket.Title + " in Project " + notification.Ticket.Project.Name, notification.Data); }
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; }
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)); }