0
我試圖使用PHPMailer庫和Amazon SES服務發送電子郵件。我已創建SES帳戶並通過添加TXT記錄以及DKIM設置的CNAME記錄來驗證我的域。554郵件被拒絕:電子郵件地址未驗證
在SES Email Addresses
我已驗證一個電子郵件地址 - [email protected]
。使用PHPMailer我已使用SES憑證並將電子郵件從[email protected]
發送到[email protected]
。我做了調試,並得到這個錯誤。
`
2016-04-26 06:31:31 Connection: opening to email-smtp.us-west-2.amazonaws.com:587, timeout=300, options=array()
2016-04-26 06:31:32 Connection: opened
2016-04-26 06:31:32 SERVER -> CLIENT: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-1383310303 k1ZVesNloQSqFkoQfZd3
2016-04-26 06:31:32 CLIENT -> SERVER: EHLO Varun-PC
2016-04-26 06:31:33 SERVER -> CLIENT: 250-email-smtp.amazonaws.com
250-8BITMIME
250-SIZE 10485760
250-STARTTLS
250-AUTH PLAIN LOGIN
250 Ok
2016-04-26 06:31:33 CLIENT -> SERVER: STARTTLS
2016-04-26 06:31:33 SERVER -> CLIENT: 220 Ready to start TLS
2016-04-26 06:31:37 CLIENT -> SERVER: EHLO Varun-PC
2016-04-26 06:31:37 SERVER -> CLIENT: 250-email-smtp.amazonaws.com
250-8BITMIME
250-SIZE 10485760
250-STARTTLS
250-AUTH PLAIN LOGIN
250 Ok
2016-04-26 06:31:37 CLIENT -> SERVER: AUTH LOGIN
2016-04-26 06:31:37 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2016-04-26 06:31:37 CLIENT -> SERVER: xxx=
2016-04-26 06:31:38 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2016-04-26 06:31:38 CLIENT -> SERVER: xxx=
2016-04-26 06:31:38 SERVER -> CLIENT: 235 Authentication successful.
2016-04-26 06:31:38 CLIENT -> SERVER: MAIL FROM:<[email protected]>
2016-04-26 06:31:38 SERVER -> CLIENT: 250 Ok
2016-04-26 06:31:38 CLIENT -> SERVER: RCPT TO:<[email protected]>
2016-04-26 06:31:39 SERVER -> CLIENT: 250 Ok
2016-04-26 06:31:39 CLIENT -> SERVER: DATA
2016-04-26 06:31:39 SERVER -> CLIENT: 354 End data with <CR><LF>.<CR><LF>
2016-04-26 06:31:39 CLIENT -> SERVER: Date: Tue, 26 Apr 2016 08:31:31 +0200
2016-04-26 06:31:39 CLIENT -> SERVER: To: Varun Kakumani <[email protected]>
2016-04-26 06:31:39 CLIENT -> SERVER: From: Varun K <[email protected]>
2016-04-26 06:31:39 CLIENT -> SERVER: Reply-To: Varun K <kakumani[email protected]>
2016-04-26 06:31:39 CLIENT -> SERVER: Subject: Here is the subject
2016-04-26 06:31:39 CLIENT -> SERVER: Message-ID: <[email protected]>
2016-04-26 06:31:39 CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.14 (https://github.com/PHPMailer/PHPMailer)
2016-04-26 06:31:39 CLIENT -> SERVER: MIME-Version: 1.0
2016-04-26 06:31:39 CLIENT -> SERVER: Content-Type: multipart/alternative;
2016-04-26 06:31:39 CLIENT -> SERVER: boundary="b1_c08d7f7eb22ab5220658077db4c36139"
2016-04-26 06:31:39 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER: This is a multi-part message in MIME format.
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER: --b1_c08d7f7eb22ab5220658077db4c36139
2016-04-26 06:31:39 CLIENT -> SERVER: Content-Type: text/plain; charset=us-ascii
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER: This is the body in plain text for non-HTML mail clients
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER: --b1_c08d7f7eb22ab5220658077db4c36139
2016-04-26 06:31:39 CLIENT -> SERVER: Content-Type: text/html; charset=us-ascii
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER: This is the HTML message body <b>in bold!</b>
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER: --b1_c08d7f7eb22ab5220658077db4c36139--
2016-04-26 06:31:39 CLIENT -> SERVER:
2016-04-26 06:31:39 CLIENT -> SERVER: .
2016-04-26 06:31:39 SERVER -> CLIENT: 554 Message rejected: Email address is not verified.
2016-04-26 06:31:39 SMTP ERROR: DATA END command failed: 554 Message rejected: Email address is not verified.
2016-04-26 06:31:39 SMTP Error: data not accepted.
Message could not be sent.Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Message rejected: Email address is not verified.
SMTP code: 5542016-04-26 06:31:39 CLIENT -> SERVER: QUIT
2016-04-26 06:31:40 SERVER -> CLIENT: 221 Bye
2016-04-26 06:31:40 Connection: closed
`
@Varun_Kakumani請將您自己的答案標記爲已接受,謝謝。 –
@FrancescoAbeni,至少在2天后我不能接受我自己的答案。感謝您的建議。請注意,這樣對其他人有幫助。 –