作者 邓超

smtp发送

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