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