Esempio n. 1
0
 public static Task SendResetPasswordAsync(this IEmailServices emailSender, string email, string callbackUrl)
 {
     return(emailSender.SendEmailAsync(email, "Reset Password",
                                       $"Please reset your password by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>."));
 }
Esempio n. 2
0
 public static Task SendEmailConfirmationAsync(this IEmailServices emailSender, string email, string link)
 {
     return(emailSender.SendEmailAsync(email, "Confirm your email",
                                       $"Please confirm your account by <a href='{HtmlEncoder.Default.Encode(link)}'>clicking here</a>."));
 }