久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

PHPMailer 電子郵件發送成功但未收到 (EC2)

PHPMailer email sent successfully but not received (EC2)(PHPMailer 電子郵件發送成功但未收到 (EC2))
本文介紹了PHPMailer 電子郵件發送成功但未收到 (EC2)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在 EC2 上使用 PHPMailer.我的帳戶不在沙箱中,我從經過驗證的電子郵件發送.我從 PHPMailer 沒有收到錯誤,這就是我的日志

I am using PHPMailer on EC2. My account is not in a sandbox and Im sending from verified email. Im getting no errors from PHPMailer and thats my log

2017-03-31 06:24:52 Connection: opening to email-smtp.us-west-2.amazonaws.com:587, timeout=300, options=array ( ) 
2017-03-31 06:24:52 Connection: opened 
2017-03-31 06:24:53 SERVER -> CLIENT: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-2007935443 svKFRJ5M6s1rqbMTRdZu 
2017-03-31 06:24:53 CLIENT -> SERVER: EHLO ***.domain 
2017-03-31 06:24:53 SERVER -> CLIENT: 250-email-smtp.amazonaws.com 250-8BITMIME 250-SIZE 10485760 250-STARTTLS 250-AUTH PLAIN LOGIN 250 Ok 
2017-03-31 06:24:53 CLIENT -> SERVER: STARTTLS 
2017-03-31 06:24:53 SERVER -> CLIENT: 220 Ready to start TLS 
2017-03-31 06:24:53 CLIENT -> SERVER: EHLO ***.domain 
2017-03-31 06:24:53 SERVER -> CLIENT: 250-email-smtp.amazonaws.com 250-8BITMIME 250-SIZE 10485760 250-STARTTLS 250-AUTH PLAIN LOGIN 250 Ok 
2017-03-31 06:24:53 CLIENT -> SERVER: AUTH LOGIN 
2017-03-31 06:24:53 SERVER -> CLIENT: 334 VXNlcm5hbWU6 
2017-03-31 06:24:53 CLIENT -> SERVER: xxx= 
2017-03-31 06:24:53 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 
2017-03-31 06:24:53 CLIENT -> SERVER: xxx= 
2017-03-31 06:24:53 SERVER -> CLIENT: 235 Authentication successful. 
2017-03-31 06:24:53 CLIENT -> SERVER: MAIL FROM: 
2017-03-31 06:24:53 SERVER -> CLIENT: 250 Ok 
2017-03-31 06:24:53 CLIENT -> SERVER: RCPT TO: 
2017-03-31 06:24:53 SERVER -> CLIENT: 250 Ok 
2017-03-31 06:24:53 CLIENT -> SERVER: DATA 
2017-03-31 06:24:53 SERVER -> CLIENT: 354 End data with . 
2017-03-31 06:24:53 CLIENT -> SERVER: Date: Fri, 31 Mar 2017 06:24:52 +0000 
2017-03-31 06:24:53 CLIENT -> SERVER: To: NG 
2017-03-31 06:24:53 CLIENT -> SERVER: From: Me 
2017-03-31 06:24:53 CLIENT -> SERVER: Subject: New User Added 
2017-03-31 06:24:53 CLIENT -> SERVER: Message-ID: <8ada86808c4dc38c21d7ff5d64051951@***.domain> 
2017-03-31 06:24:53 CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.21 (https://github.com/PHPMailer/PHPMailer) 
2017-03-31 06:24:53 CLIENT -> SERVER: MIME-Version: 1.0 
2017-03-31 06:24:53 CLIENT -> SERVER: Content-Type: text/html; charset=iso-8859-1 
2017-03-31 06:24:53 CLIENT -> SERVER: 
2017-03-31 06:24:53 CLIENT -> SERVER: 123 
2017-03-31 06:24:53 CLIENT -> SERVER: 
2017-03-31 06:24:53 CLIENT -> SERVER: . 
2017-03-31 06:24:53 SERVER -> CLIENT: 250 Ok 0101015b2309bfbe-39a8cf31-ad57-4998-832d-94312b7ddfad-000000 
2017-03-31 06:24:53 CLIENT -> SERVER: QUIT 
2017-03-31 06:24:53 SERVER -> CLIENT: 221 Bye 
2017-03-31 06:24:53 Connection: closed 

這是我的 PHPMailer 設置

This is my PHPMailer settings

$this->SMTPDebug = 3;

$this->Host = 'email-smtp.us-west-2.amazonaws.com';
$this->Username = '***';
$this->Password = '***';
$this->SMTPAuth = true;
$this->SMTPSecure = 'tls';
$this->Port = 587;
$this->isHTML(true);
$this->isSMTP();


$this->From = '***';
$this->FromName = '***';
$this->ReturnPath = '***';

我嘗試將其發送到其他電子郵件,但仍然無法正常工作.這是發送的實際代碼

I tried to send this to different email but it still not working. Here is actual code of sending

$mailer = new Mailer($API);
$mailer->Subject = 'New User Added';
$mailer->Body = '123';

$mailer->addAddress('***', '***');

if (!$mailer->send()) {
   throw new Exception($mailer->ErrorInfo);
} else {
    print_r('Sent');
}

推薦答案

我建議你去https://www.mail-tester.com/ 然后復制您看到的電子郵件地址.更新您的代碼,然后使用 PHPMailer 向您復制的地址發送電子郵件.假設您的代碼確實發送了電子郵件,并且看起來您的代碼是正確的,那么 Mail Tester 將顯示您的電子郵件存在哪些問題.

I would suggest that you go to https://www.mail-tester.com/ and then copy the email address you see. Update your code and then send an email using PHPMailer to the address you copied. Assuming that your code does actually send the email, and it looks like your code is correct, then Mail Tester will show you what problems your email has.

這篇關于PHPMailer 電子郵件發送成功但未收到 (EC2)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 成人在线观看免费观看 | 久久国内精品 | 日韩一区二 | 午夜影院在线观看 | 国产羞羞视频在线观看 | 欧美九九 | 一级a性色生活片久久毛片波多野 | 国产视频二区在线观看 | 毛片视频网址 | 欧美在线| 亚洲精品视频免费看 | 麻豆久久 | 欧美v在线| 成人免费视频观看视频 | 男人的天堂视频网站 | 男女羞羞视频免费看 | 亚洲一区成人 | 拍真实国产伦偷精品 | 羞羞视频在线观看 | 国产成人免费视频网站视频社区 | 午夜精品在线 | 国产激情一区二区三区 | 国产中文视频 | 91精品在线播放 | 我要看免费一级毛片 | 午夜视频在线 | 精品国产乱码久久久久久丨区2区 | 人碰人操| 亚洲一区二区三区观看 | 天堂资源 | 久久精品久久久久久 | 国产97碰免费视频 | 男女免费在线观看视频 | 中文字幕成人av | 欧美中文字幕一区二区三区 | 欧美精品一区在线观看 | 日日拍夜夜 | 日韩一级免费观看 | 国产成人高清视频 | 国产高清在线精品一区二区三区 | 亚洲毛片|