...
|
...
|
@@ -177,13 +177,6 @@ class MailFun { |
|
|
$mail->Port = $smtp['port']; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
|
|
|
$mail->CharSet = 'utf-8';
|
|
|
$mail->Encoding = PHPMailer::ENCODING_QUOTED_PRINTABLE;
|
|
|
// 设置代理
|
|
|
if(!empty($email['proxy'])){
|
|
|
$mail->SMTPOptions['http']= [
|
|
|
'proxy' => $email['proxy'], // 代理地址
|
|
|
'request_fulluri' => true,
|
|
|
];
|
|
|
}
|
|
|
|
|
|
// 是否验证证书
|
|
|
$mail->SMTPOptions = [
|
...
|
...
|
|