コード例 #1
0
ファイル: SmtpConfiguration.cs プロジェクト: Pawcv/Webmail
 public void OverrideWith(SmtpConfiguration other)
 {
     this.Host                = other.Host;
     this.Port                = other.Port;
     this.Username            = other.Username;
     this.Password            = other.Password;
     this.SecureSocketOptions = other.SecureSocketOptions;
 }
コード例 #2
0
 public MailSender(SmtpConfiguration configuration)
 {
     // TODO check params
     this.Credentials     = new NetworkCredential(configuration.Username, configuration.Password);
     this.Host            = configuration.Host;
     this.Port            = configuration.Port;
     this.SecurityOptions = configuration.SecureSocketOptions;
 }