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'; //发件人