示例#1
0
 public SendResult(ESendResult result, SmtpResponse lastResponse)
 {
     this._invalidAddresses = new List <EmailAddress>();
     if (lastResponse == null)
     {
         throw new ArgumentNullException("lastResponse");
     }
     this.Result       = result;
     this.LastResponse = lastResponse;
 }
示例#2
0
 public SendResult(ESendResult result, SmtpResponse lastResponse, IEnumerable <EmailAddress> invalidEmails)
 {
     this._invalidAddresses = new List <EmailAddress>();
     if (lastResponse == null)
     {
         throw new ArgumentNullException("lastResponse");
     }
     if (invalidEmails == null)
     {
         throw new ArgumentNullException("invalidEmails");
     }
     this.Result = result;
     this._invalidAddresses.AddRange(invalidEmails);
     this.LastResponse = lastResponse;
 }