|
|
@@ -90,8 +90,8 @@ class EmailService extends BaseService
|
|
|
$mail->CharSet ="UTF-8"; //设定邮件编码
|
|
|
$mail->SMTPDebug = 0; //调试模式输出:0 不输出,2 输出
|
|
|
$mail->Timeout = 10; //超时
|
|
|
- $mail->Mailer = 'SMTP';
|
|
|
-// $mail->isSMTP(); //使用SMTP
|
|
|
+// $mail->Mailer = 'SMTP';
|
|
|
+ $mail->isSendmail(); //使用SMTP
|
|
|
$mail->Host = $this->config['host']; // SMTP服务器:以QQ为例
|
|
|
$mail->SMTPAuth = true; // 允许 SMTP 认证
|
|
|
$mail->Username = $this->config['username']; // SMTP用户名: 即发送方的邮箱
|