| sp; Fields#region Fields
MyJmail.Message jmail = null;
#endregion
Methods#region Methods
public override void Open() { jmail = new MyJmail.Message(); }
public override bool Send(MailMessage message, string smtpServer, string serverUsername, string serverPassword, int smtpPort) { if (jmail == null) throw new Exception("smtp is Closed!"); if (message == null) throw new ArgumentNullException("message");
DateTime t = DateTime.Now;
//Silent属性:如果设置为true,JMail不会抛出例外错误. JMail. Send( () 会根据操作结果返回true或false jmail.Silent = false;
//jmail创建的日志,前提loging属性设置为true j 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |