Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        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));
        }