public bool Send(MailMessage mailMessage, string username, string password) { SmtpServerHelper smtpServerHelper = new SmtpServerHelper(); if (smtpServerHelper.SendEmail(this._SmtpServer, this._SmtpPort, username, password, mailMessage)) { return(true); } this.errmsg = smtpServerHelper.ErrMsg; return(false); }
public bool Send(MailMessage mailMessage, string username, string password) { SmtpServerHelper helper = new SmtpServerHelper(); if (helper.SendEmail(_SmtpServer, 25, username, password, mailMessage)) { return(true); } else { errmsg = helper.ErrMsg; return(false); } }
public bool Send(MailMessage mailMessage, string username, string password) { SmtpServerHelper helper = new SmtpServerHelper(); if (helper.SendEmail(_SmtpServer, 25, username, password, mailMessage)) return true; else { errmsg = helper.ErrMsg; return false; } }
public static bool Send(MailMessage mailMessage, int port, string username, string password) { SmtpServerHelper helper = new SmtpServerHelper(); Log.TraceLog("port: " + port.ToString()); return helper.SendEmail(_SmtpServer, port, username, password, mailMessage); }
public static bool Send(MailMessage mailMessage, string username, string password) { SmtpServerHelper helper = new SmtpServerHelper(); return helper.SendEmail(_SmtpServer, 0x19, username, password, mailMessage); }