/// <summary> /// 验证授权是否通过 /// </summary> /// <returns></returns> public virtual bool CheckAuth(out string message) { var auth = new SmtpAuth(this.Host, this.Port, this.Account, this.Password, SSLEnabled); message = auth.Message; return(auth.Success); }
/// <summary> /// 验证授权是否通过 /// </summary> /// <returns></returns> public virtual bool CheckAuth() { var auth = new SmtpAuth(this.Host, this.Port, this.Account, this.Password, this.SSLEnabled); return(auth.Success); }