Exemple #1
0
        /// <summary>
        /// 发送失败的记录存入EmailSendHistory表
        /// </summary>
        /// <param name="mail">EmailList</param>
        /// <returns></returns>
        public bool InsertSendHistry(EmailList mail)
        {
            string strSql = config.InsertSendHistry.FormatWith(mail.Email, mail.Body, mail.Subject);

            WriteLog(strSql);
            return(Data.ExecSql(strSql) > 0 ? true : false);
        }
Exemple #2
0
 /// <summary>
 /// 发送失败的记录存入EmailSendHistory表
 /// </summary>
 /// <param name="mail">EmailList</param>
 /// <returns></returns>
 public bool InsertSendHistry(EmailList mail) {
     string strSql = config.InsertSendHistry.FormatWith(mail.Email, mail.Body, mail.Subject);
     WriteLog(strSql);
     return Data.ExecSql(strSql) > 0 ? true : false;
 }