简体   繁体   English

为什么这个 PHP 电子邮件脚本不会发送到我的 Yahoo 电子邮件?

[英]Why won't this PHP Email Script send to my Yahoo email?

so I have this script and I've been trying to figure out why it won't send to my Yahoo email account.所以我有这个脚本,我一直在试图弄清楚为什么它不会发送到我的雅虎电子邮件帐户。

<?php


require 'Exception.php';
require 'PHPMailer.php';
require 'SMTP.php';

require 'autoload.php';
//PHPMailer Object
$mail = new PHPMailer(true);



$mail->SMTPDebug  = 2; 
$mail->Host       = "tampabaydowns@tbdseats.com"; 
$mail->SMTPAuth = true; 
                    
          
$mail->Username   = "tampabaydowns@tbdseats.com"; 
$mail->Password   = "~~~";  

$mail->SMTPSecure = "SSL";  
$mail->Port       = 465;   

$mail->From = "tampabaydowns@tbdseats.com";
$mail->FromName = "Tampa Bay Downs";

$mail->addAddress("~~@yahoo.com", "Austin");

$mail->Subject = 'PHPMailer GMail SMTP test';
$mail->Body = 'This is a plain text';

try {
    $mail->send();
    echo "Message has been sent successfully";
} catch (Exception $e) {
    echo "Mailer Error: " . $mail->ErrorInfo;
}

?>

When I load the script page it says sent successfully but on the server, the email bounces back with this当我加载脚本页面时,它说已成功发送,但在服务器上,电子邮件会因此退回

 ~~@yahoo.com
    host mta6.am0.yahoodns.net [67.195.~~]
    SMTP error from remote mail server after pipelined MAIL FROM:<~~~@server.tbdseats.com> SIZE=1759:
    553 5.7.2 [TSS09] All messages from 217.~~ will be permanently deferred; Retrying will NOT succeed. See https://postmaster.verizonmedia.com/error-codes

I am unsure why this isn't working.我不确定为什么这不起作用。 When I replace my yahoo email with my gmail, it sends and my gmail gets the email from the server.当我用我的 gmail 替换我的 yahoo 电子邮件时,它会发送并且我的 gmail 从服务器获取电子邮件。 Is there something different that has to be done with Yahoo?雅虎是否需要做一些不同的事情?

My Yahoo email isn't blocking any incoming email addresses and it isn't in my spam.我的 Yahoo 电子邮件没有阻止任何传入的电子邮件地址,也没有出现在我的垃圾邮件中。

I added ~~~ to the secure information, that is why that is there.我在安全信息中添加了~~~,这就是为什么它在那里。

Can someone please help, I've been trying to figure this out for the past 3 hours :( :(有人可以帮忙吗,过去 3 个小时我一直在努力解决这个问题:( :(

The IP address of your provider's email server is blocked by yahoo.您的提供商电子邮件服务器的 IP 地址被雅虎阻止。 Use another server or service to relay your messages.使用其他服务器或服务来中继您的消息。 As you pointed out gmail is relaying your messages correctly.正如您所指出的,gmail 正在正确地转发您的邮件。

You can also ask your email admin to try fix it for you, but Yahoo is difficult to deal with on this kind of errors.您也可以要求您的电子邮件管理员尝试为您修复它,但 Yahoo 很难处理此类错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我的PHP脚本不发送电子邮件? - Why Won't My PHP Script Send Email? PHP电子邮件不会发送到我的电子邮件 - PHP email won't send to my email 为什么我的PhP表格不将数据发送到我的电子邮件? - Why won't my PhP form send the Data to my email? 当我可以通过 PHP 脚本发送电子邮件时,为什么不能通过 Wordpress 发送电子邮件? - Why won't I send an email thru Wordpress when I can send it thru a PHP script? 为什么我的webform不会将数据发送到我的电子邮箱? - Why won't my webform send data to my email? 为什么我的提交按钮不能将信息发送到我想要的 email? (PHP) - Why won't my submit button send info to my desired email? (PHP) PHP联系表格存在问题(不会将查询发送到我的电子邮件):( - Issues with PHP contact form (won't send inquiries to my email) :( 无法使用PHP将电子邮件发送到Yahoo电子邮件 - Unable to send email to yahoo email using PHP 如果发件人地址来自雅虎电子邮件地址,则我的php()邮件脚本不会发送电子邮件 - My php() mail script wont send emails if the from address is from a yahoo email address 为什么我的php脚本无法将联系表发送到我的电子邮件? - Why is my php script not send the contact form to my email?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM