public NewsletterViewModel(NewsletterPage currentPage, NotificationSettings settings)
        {
            NewsletterPage = currentPage;

            if (settings != null)
            {
                Settings = settings;
                From = settings.From;
                Footer = settings.MailFooter.ToString();
                Header = settings.MailHeader.ToString();
            }
        }
 private static Models.ResetPassword CreateResetPasswordEmailMessage(string email, string subject, string body,
                                                              string passwordHash, string resetUrl,
                                                              NotificationSettings mailSettings)
 {
     var emailMessage = new Models.ResetPassword();
     emailMessage.From = mailSettings.From;
     emailMessage.To = email;
     emailMessage.Subject = subject;
     emailMessage.Header = mailSettings.MailHeader.ToString();
     emailMessage.Footer = mailSettings.MailFooter.ToString();
     emailMessage.Body = body;
     emailMessage.Token = passwordHash;
     emailMessage.ResetUrl = resetUrl;
     return emailMessage;
 }