Esempio n. 1
0
        public async Task SendChangeEmailAlreadyExistsEmailAsync(string fromEmail, string toEmail)
        {
            var message = CreateDefaultMessage("Your Email Change", toEmail);
            var model   = new ChangeEmailExistsViewModel
            {
                FromEmail   = fromEmail,
                ToEmail     = toEmail,
                WebVaultUrl = _globalSettings.BaseServiceUri.VaultWithHash,
                SiteName    = _globalSettings.SiteName
            };

            await AddMessageContentAsync(message, "ChangeEmailAlreadyExists", model);

            await _mailDeliveryService.SendEmailAsync(message);
        }
Esempio n. 2
0
        public async Task SendChangeEmailAlreadyExistsEmailAsync(string fromEmail, string toEmail)
        {
            var message = CreateDefaultMessage("Your Email Change", toEmail);
            var model   = new ChangeEmailExistsViewModel
            {
                FromEmail   = fromEmail,
                ToEmail     = toEmail,
                WebVaultUrl = _globalSettings.BaseVaultUri,
                SiteName    = _globalSettings.SiteName
            };

            message.HtmlContent = _engine.Parse("ChangeEmailAlreadyExists", model);
            message.TextContent = _engine.Parse("ChangeEmailAlreadyExists.text", model);
            await _mailDeliveryService.SendEmailAsync(message);
        }