我向許多客戶發送電子郵件。出于某種原因,所有 12 個擁有 *@comcast.net 地址的客戶都將電子郵件放入他們的垃圾郵件檔案夾。我嘗試聯系康卡斯特,但試圖從他們那里獲得幫助就像從巖石中取水一樣。這是我用來發送電子郵件的 php 腳本:
function mailerExpressBlueHostUpdated(array $mailInputs){
require_once '../includes/phpmailer6.6/src/PHPMailer.php';
require_once '../includes/phpmailer6.6/src/SMTP.php';
$mail = new PHPMailer();
$mail->IsMail();
$mail->SetFrom('[email protected]');
$mail->IsHTML(true);
$mail->addAddress($mailInputs['addAddress']);
$mail->AddEmbeddedImage("../public/img/swb.jpg", "swb-image");
$mail->AddEmbeddedImage("../public/img/email-32.png", "swb-email");
$mail->AddEmbeddedImage("../public/img/phone-32.png", "swb-phone");
$body = $mailInputs['body'] ;
$mail->isHTML(true);
$mail->Subject = $mailInputs['subject'] ;
$mail->Body = $body;
if(!$mail->send()) {
//echo "MAIL NOT SENT";
return 'Message could not be sent.' . 'Mailer Error: ' . $mail->ErrorInfo;
}else{
//echo "sent mail";
return 'Message has been sent';
}
$mail->ClearAddresses();
}
這是我從 dns 健康檢查中得到的警告
DMARC sailwbob.com DNS DMARC RUA / RUF domains Not valid.
DMARC sailwbob.com DMARC Quarantine/Reject policy Not enabled.
SMTP mail.sailwbob.com. 10.84 seconds - Bad on Transaction time.
SMTP mail.sailwbob.com. Reverse DNS does not match SMTP Banner.
DNS sailwbob.com SOA Expire Value is out of recommended range.
DNS sailwbob.com SOA Refresh Value is out of recommended range.
非常感謝任何指導
uj5u.com熱心網友回復:
因此,在與 comcast 的高級技術人員進行廣泛合作后,我得到了以下資訊:
Comcast has very strong security policies in place to prevent data breaches. In
order for emails to not go to spam you need to go to connect.xfinity.com log into
your comcast account and add a custom filter. Add the address you want to
receive emails from and tell it to place those emails in your inbox.
有一個不涉及自定義過濾器的解決方案會很好,但這就是我目前所擁有的
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/497081.html
標籤:电子邮件 验证 phpmailer SPF dmarc
上一篇:如何在Blazor服務器應用程式中自定義默認WindowsAutheticationStateProvider?
