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; }
private void Begin(string mxDomain) { channel = new SmtpChannel(mxDomain); Read(SmtpStatusCode.ServiceReady); }