Ejemplo n.º 1
0
        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);
        }
    }
Ejemplo n.º 3
0
 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;
     }
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 public static bool Send(MailMessage mailMessage, string username, string password)
 {
     SmtpServerHelper helper = new SmtpServerHelper();
     return helper.SendEmail(_SmtpServer, 0x19, username, password, mailMessage);
 }