|
|
|
|
@ -80,6 +80,7 @@ class Sendmail extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
//发送失败,则记录日志,并发送一封邮件给管理员
|
|
|
|
|
/** 2020.01.10 通知管理员的邮件不发了! */
|
|
|
|
|
$this->InfoSMS_model->set_mail_status($m->M_SN,2);
|
|
|
|
|
$error_msg=$this->email->print_debugger();
|
|
|
|
|
$this->Logs_model->write('send_mail',$m->M_SN,$error_msg);
|
|
|
|
|
echo 'false';
|
|
|
|
|
@ -88,13 +89,13 @@ class Sendmail extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
//成功发送
|
|
|
|
|
$m->M_Web!='paypal msg' && $order_condition=" or (M_ToEmail='$m->M_ToEmail' and M_ToName='$m->M_ToName' and M_Title='$m->M_Title') ";
|
|
|
|
|
|
|
|
|
|
$this->InfoSMS_model->set_mail_status($m->M_SN,1);
|
|
|
|
|
$this->Logs_model->write('send_mail_success',$m->M_SN,'成功发送:'.$m->M_ToEmail);
|
|
|
|
|
echo 'ok';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->InfoSMS_model->set_mail_status($m->M_SN,1);
|
|
|
|
|
$this->InfoSMS_model->set_mail_status($m->M_SN,3);
|
|
|
|
|
$this->email->clear(TRUE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|