修改邮件发送

hotfix/远程访问多媒体中心
cyc 6 years ago
parent 06be970ec0
commit d9d55e3cd1

@ -264,6 +264,13 @@ class Index extends CI_Controller {
$mail->CharSet = "utf-8"; $mail->CharSet = "utf-8";
$mail->Encoding = "base64"; $mail->Encoding = "base64";
$mail->IsHTML(true); $mail->IsHTML(true);
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
//$mail->SMTPDebug = 2; //$mail->SMTPDebug = 2;
$mail->FromName = $fromuser; //收件人昵称 $mail->FromName = $fromuser; //收件人昵称

Loading…
Cancel
Save