Exemplo n.º 1
0
        public SmtpClient(ISmtpClientConfig config)
        {
            Config = config;

            _netClient = new NetClient {
                Credentials = new NetworkCredential(Config.Username, Config.Password),
                Host        = Config.Server,
                Port        = Config.Port
            };
        }
Exemplo n.º 2
0
 public SmtpClient(ISmtpClientConfig config, ILogger logger)
 {
     this.currentLogger = logger ?? new NullLogger(typeof(SmtpClient));
     this.currentConfig = config ?? new NullSmtpClientConfig();
     this.Logger.Debug("Constructor Complete");
 }
Exemplo n.º 3
0
 public SmtpClient(ISmtpClientConfig config)
     : this(config, null)
 {
 }
Exemplo n.º 4
0
 public SmtpEmailClient(ISmtpClientConfig config)
 {
     _config = config;
 }