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