|
|
|
|
@ -54,10 +54,10 @@ class Sendmail extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
$this->load->library('email');
|
|
|
|
|
$config['protocol'] = 'smtp';
|
|
|
|
|
$config['smtp_host'] = 'ssl://hwsmtp.exmail.qq.com';//ssl://smtp.sendgrid.net';
|
|
|
|
|
$config['smtp_host'] = 'ssl://smtp.qiye.aliyun.com';//ssl://smtp.sendgrid.net';
|
|
|
|
|
$config['smtp_port'] = 465;
|
|
|
|
|
$config['smtp_user'] = 'noreply02@chinahighlights.net';//'zm198311@yahoo.com.cn';
|
|
|
|
|
$config['smtp_pass'] = 'eHgb2Z8G\HbR';//cits@123';
|
|
|
|
|
$config['smtp_user'] = 'noreply02@chinahighlights.com';//'zm198311@yahoo.com.cn';
|
|
|
|
|
$config['smtp_pass'] = 'haina@123456';//cits@123';
|
|
|
|
|
$config['smtp_timeout'] = 3600;
|
|
|
|
|
$config['mailtype'] = 'html';
|
|
|
|
|
$config['wordwrap'] = TRUE;
|
|
|
|
|
@ -69,7 +69,7 @@ class Sendmail extends CI_Controller
|
|
|
|
|
$this->email->initialize($config);
|
|
|
|
|
$order_condition=false;
|
|
|
|
|
if (!empty($m->M_ToEmail)) {
|
|
|
|
|
$this->email->from('noreply02@chinahighlights.net', $m->M_FromName);
|
|
|
|
|
$this->email->from('noreply02@chinahighlights.com', $m->M_FromName);
|
|
|
|
|
$this->email->to($m->M_ToEmail,$m->M_ToName);
|
|
|
|
|
$this->email->reply_to($m->M_ReplyToEmail, $m->M_ReplyToName);
|
|
|
|
|
if(!empty($m->M_CopyEmail)) $this->email->cc($m->M_CopyEmail);//抄送
|
|
|
|
|
@ -88,7 +88,7 @@ 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->Logs_model->write('send_mail_success',$m->M_SN,'成功发送:'.$m->M_ToEmail);
|
|
|
|
|
echo 'ok';
|
|
|
|
|
}
|
|
|
|
|
|