From 62f13bca2a6e747c2b17c1a62f9231d9c9ba7710 Mon Sep 17 00:00:00 2001 From: cyc Date: Mon, 13 May 2019 16:41:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/dingmail/controllers/index.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/webht/third_party/dingmail/controllers/index.php b/webht/third_party/dingmail/controllers/index.php index b11f4bda..b09ddda8 100644 --- a/webht/third_party/dingmail/controllers/index.php +++ b/webht/third_party/dingmail/controllers/index.php @@ -246,21 +246,16 @@ class Index extends CI_Controller { $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = 'smtp.mxhichina.com';//smtp.sendgrid.net - $mail->Port = 25; + $mail->Port = 465; $mail->SMTPAuth = true; + $mail->SMTPSecure = false; $mail->Username = 'admin@hainatravel.com'; $mail->Password = "Hainatravel123";//Hainatravel1234 - $mail->SMTPSecure = 'tls'; + $mail->SMTPSecure = 'ssl'; $mail->CharSet = "utf-8"; $mail->Encoding = "base64"; $mail->IsHTML(true); - $mail->SMTPOptions = array( - 'ssl' => array( - 'verify_peer' => false, - 'verify_peer_name' => false, - 'allow_self_signed' => true - ) - ); + //$mail->SMTPDebug = 2; $mail->FromName = $fromuser; //收件人昵称 $mail->From = 'admin@hainatravel.com'; //发件人