Пример #1
0
 private async Task<bool> SendEmailConfirmationToPatient(User user)
 {
     var emailService = new SendGridEmailService();
     var subject = "AskMJane Patient Application Review";
     var body =
         String.Format(
             "UserId : {0} {1} {2} {3}  Needs review", user.Id, user.FirstName, user.LastName, user.Email);
     var to = "*****@*****.**";
     await emailService.SendEmailAsync(to, subject, body);
     return true;
 }
Пример #2
0
 private async Task<bool> SendEmailConfirmationToAskMJane(User user)
 {
     var emailService = new SendGridEmailService();
     var subject = "AskMJane Patient Application Confirmation";
     var body =
         String.Format(
             "Hi {0},  We've received your patient application and will contact you shortly letting you know when our review process has been completed." +
             "Thanks! The AskMJane Team", user.FirstName);
     var to = user.Email;
     await emailService.SendEmailAsync(to, subject, body);
     return true;
 }