Пример #1
0
        public async Task SendConfirmEmailMail(User user, string confirmationUrl)
        {
            var confirmationUrlWithKey = _verificationService.CreateVerificationUrl(confirmationUrl, user, UserVerificationType.ConfirmEmail);
            var confirmationMailModel  = new ConfirmationMailModel(confirmationUrlWithKey, user.FirstName, user.LastName);
            var message = new MailMessage <ConfirmationMailModel>(user.Email, MailResources.ConfirmEmail_Subject, MailResources.ConfirmEmail_Body, confirmationMailModel);

            await _mailService.SendMail(message);
        }