Exemple #1
0
 public Result(
     bool delivered,
     MailAddress recipient,
     SmtpChannel channel   = null,
     SmtpResponse response = null,
     Exception exception   = null
     )
 {
     Delivered = delivered;
     Recipient = recipient;
     if (channel != null)
     {
         MXDomain = channel.MxDomain;
         UsingSsl = channel.UsingSsl;
     }
     Response  = response;
     Exception = exception;
 }
Exemple #2
0
 private void Begin(string mxDomain)
 {
     channel = new SmtpChannel(mxDomain);
     Read(SmtpStatusCode.ServiceReady);
 }