public async Task <bool> SendPasswordConfirmationEmailAsync(string emailAdress, string confirmationLink) { StringBuilder template = EmailTemplateHelpers.GetPasswordConfimartionTemplate(); string emailSubject = "[Sklep Gabio.pl] Potwierdź swój adres email"; return(await SendEmail( emailAdress, emailSubject, template, new { ActivationLink = $"https://gabio.pl/potwierdz-email/{confirmationLink}" })); }
public async Task <bool> SendPasswordResetEmailAsync(string emailAdress, string username, string resetLink) { StringBuilder template = EmailTemplateHelpers.GetPasswordResetTemplate(); string emailSubject = "[Sklep Gabio.pl] Reset hasła"; return(await SendEmail( emailAdress, emailSubject, template, new { ResetLink = $"https://gabio.pl/resetuj-haslo/{resetLink}", Username = username })); }