这个问题在这里已有答案:
我正在尝试使用PHPMailer库和Amazon SES服务发送电子邮件 . 我创建了SES帐户并通过添加TXT记录和DKIM设置的CNAME记录来验证我的域名 .
在SES Email Addresses 我已经验证了一个电子邮件地址 - kakumanivrn@ . 使用PHPMailer我使用了SES凭据并从 kakumanivrn@ 发送了电子邮件至 kakumanivr@ . 我做了调试并得到了这个错误 .
`
-04-26 06:31:31 Connection: opening to email-smtp.us-west-:587, timeout=300, options=array ()
-04-26 06:31:32 Connection: opened
-04-26 06:31:32 SERVER -> CLIENT: 220 email- ESMTP SimpleEmailService-1383310303 k1ZVesNloQSqFkoQfZd3
-04-26 06:31:32 CLIENT -> SERVER: EHLO Varun-PC
-04-26 06:31:33 SERVER -> CLIENT: 250-email-
250-8BITMIME
250-SIZE 10485760
250-STARTTLS
250-AUTH PLAIN LOGIN
250 Ok
-04-26 06:31:33 CLIENT -> SERVER: STARTTLS
-04-26 06:31:33 SERVER -> CLIENT: 220 Ready to start TLS
-04-26 06:31:37 CLIENT -> SERVER: EHLO Varun-PC
-04-26 06:31:37 SERVER -> CLIENT: 250-email-
250-8BITMIME
250-SIZE 10485760
250-STARTTLS
250-AUTH PLAIN LOGIN
250 Ok
-04-26 06:31:37 CLIENT -> SERVER: AUTH LOGIN
-04-26 06:31:37 SERVER -> CLIENT: 334 VXNlcm5hbWU6
-04-26 06:31:37 CLIENT -> SERVER: xxx=
-04-26 06:31:38 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
-04-26 06:31:38 CLIENT -> SERVER: xxx=
-04-26 06:31:38 SERVER -> CLIENT: 235 Authentication successful.
-04-26 06:31:38 CLIENT -> SERVER: MAIL FROM:
-04-26 06:31:38 SERVER -> CLIENT: 250 Ok
-04-26 06:31:38 CLIENT -> SERVER: RCPT TO:
-04-26 06:31:39 SERVER -> CLIENT: 250 Ok
-04-26 06:31:39 CLIENT -> SERVER: DATA
-04-26 06:31:39 SERVER -> CLIENT: 354 End data with .
-04-26 06:31:39 CLIENT -> SERVER: Date: Tue, 26 Apr 08:31:31 +0200
-04-26 06:31:39 CLIENT -> SERVER: To: Varun Kakumani
-04-26 06:31:39 CLIENT -> SERVER: From: Varun K
-04-26 06:31:39 CLIENT -> SERVER: Reply-To: Varun K
-04-26 06:31:39 CLIENT -> SERVER: Subject: Here is the subject
-04-26 06:31:39 CLIENT -> SERVER: Message-ID:
-04-26 06:31:39 CLIENT -> SERVER: X-Mailer: PHPMailer 5.2.14 (/PHPMailer/PHPMailer)
-04-26 06:31:39 CLIENT -> SERVER: MIME-Version: 1.0
-04-26 06:31:39 CLIENT -> SERVER: Content-Type: multipart/alternative;
-04-26 06:31:39 CLIENT -> SERVER: boundary="b1_c08d7f7eb22ab5220658077db4c36139"
-04-26 06:31:39 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER: This is a multi-part message in MIME format.
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER: --b1_c08d7f7eb22ab5220658077db4c36139
-04-26 06:31:39 CLIENT -> SERVER: Content-Type: text/plain; charset=us-ascii
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER: This is the body in plain text for non-HTML mail clients
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER: --b1_c08d7f7eb22ab5220658077db4c36139
-04-26 06:31:39 CLIENT -> SERVER: Content-Type: text/html; charset=us-ascii
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER: This is the HTML message bodyin bold!
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER: --b1_c08d7f7eb22ab5220658077db4c36139--
-04-26 06:31:39 CLIENT -> SERVER:
-04-26 06:31:39 CLIENT -> SERVER: .
-04-26 06:31:39 SERVER -> CLIENT: 554 Message rejected: Email address is not verified.
-04-26 06:31:39 SMTP ERROR: DATA END command failed: 554 Message rejected: Email address is not verified.
-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: 554-04-26 06:31:39 CLIENT -> SERVER: QUIT
-04-26 06:31:40 SERVER -> CLIENT: 221 Bye
-04-26 06:31:40 Connection: closed
`
如果觉得《java mail 554_554邮件被拒绝:电子邮件地址未经验证[重复]》对你有帮助,请点赞、收藏,并留下你的观点哦!