Example #1
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);
            }
        }
 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;
     }
 }