作者 邓超

邮件发送代理

... ... @@ -530,6 +530,7 @@ class Home extends Base {
else{
// 立即发送
$email['hot_email'] = db()->cache(86400,false)->count("select count(*) from `hot_mail` where ".dbWhere(['email'=>$email['email']]));
$email['not_proxy'] = app()->request('not_proxy');//是否要代理
$result = MailFun::sendEmail($sendData,$email);
if($result[0]){
app()->_json(['messageId' => $result[1]]);
... ...
... ... @@ -286,7 +286,7 @@ class MailFun {
}
}else{
// ai邮箱才使用代理
if(!empty($email['hot_email'])){
if(!empty($email['hot_email'])&&empty($email['not_proxy'])){
$mail->Port = 9527;
$mail->send_proxy_host = implode(':',$smtp);
... ...