Beispiel #1
0
 public async Task SendChangePasswordAlertAsync(string accountName)
 {
     var user = _passwordManagement.GetUserInfo(accountName);
     await _mailService.SendMailAsync(new MailRequest
     {
         Body      = GetAlertMailTemplate(user.DisplayName),
         MailTo    = user.Email ?? AdminEmail,
         Cc        = !String.IsNullOrEmpty(user.Email) ? AdminEmail : "",
         Subject   = "Alerta de contraseña - Cambio de contraseña",
         Important = true
     });
 }
Beispiel #2
0
 public async Task SendExpirationNotificationAsync(UserInfo userInfo, DateTime expirationDate) => await _mailService.SendMailAsync(new MailRequest
 {
     Body      = GetExpirationAlertMailTemplate(userInfo, expirationDate),
     MailTo    = userInfo.Email,
     Subject   = "Su contraseña expirará pronto - Cambio de contraseña",
     Important = true
 });