Esempio n. 1
0
        private EmailSettings EmailSettingsMock()
        {
            EmailSettings emailSettings = new EmailSettings()
            {
                SMTPPassword = "******",
                SMTPPort = 25,
                SMTPServer = "10.10.0.94",
                SMTPSslRequired = false,
                SMTPUserName = "******"
            };

            return emailSettings;
        }
Esempio n. 2
0
        public EmailSettings GetEmailSettings()
        {
            Type nameAttribute = typeof(Name);

            EmailSettings emailSettings = new EmailSettings();
            emailSettings.SMTPPassword = GetByAttribute<AppSettings>(QueryConstants.AppSettingsKey_SMTPPassword, nameAttribute).Value;
            emailSettings.SMTPPort = Int32.Parse(GetByAttribute<AppSettings>(QueryConstants.AppSettingsKey_SMTPPort, nameAttribute).Value);
            emailSettings.SMTPServer = GetByAttribute<AppSettings>(QueryConstants.AppSettingsKey_SMTPServer, nameAttribute).Value;
            emailSettings.SMTPSslRequired = Boolean.Parse(GetByAttribute<AppSettings>(QueryConstants.AppSettingsKey_SMTPUseSSL, nameAttribute).Value);
            emailSettings.SMTPUserName = GetByAttribute<AppSettings>(QueryConstants.AppSettingsKey_SMTPUserName, nameAttribute).Value;

            return emailSettings;
        }
Esempio n. 3
0
 public EmailSender(EmailSettings emailSettings)
 {
     this.emailSettings = emailSettings;
 }
Esempio n. 4
0
 public EmailSender()
 {
     emailSettings = new EmailSettings();
 }