예제 #1
0
        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}" }));
        }
예제 #2
0
        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
            }));
        }