public SendResult(ESendResult result, SmtpResponse lastResponse) { this._invalidAddresses = new List <EmailAddress>(); if (lastResponse == null) { throw new ArgumentNullException("lastResponse"); } this.Result = result; this.LastResponse = lastResponse; }
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; }