Exemplo n.º 1
0
        public Task SendEmailConfirmationEmail(string email, string token)
        {
            var link = UriUtils.AddQueryArguments(
                _routesOptions.EmailConfirmationUri.ToString(),
                ("email", email),
                ("token", token));

            return(_mailer.Send(new MailData
            {
                To = email,
                Subject = _stringLocalizer["ConfirmEmail_Subject"],
                Body = _stringLocalizer["ConfirmEmail_BodyTemplate", link],
            }));
        }