Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 465, response: -1

前端 未结 7 1313
予麋鹿
予麋鹿 2020-12-14 10:36

I am trying to send email with Amazon\'s SES/SMTP and I am getting the following error:

javax.mail.MessagingException: Could not connect to SMTP host: em

7条回答
  •  离开以前
    2020-12-14 11:23

    This employee from AWS states that SES does not support SSL at all. https://forums.aws.amazon.com/message.jspa?messageID=218303 .

    Amazon SES will attempt to send email with Transport Layer Security enabled, but there is not a way to guarantee messages are sent with TLS. SES uses opportunistic TLS when sending emails, which means it will attempt to send emails over TLS first, and then will fall back to regular SMTP if TLS is unavailable.

    Hence, I am thinking the issue you are seeing is not TLS or SSL related, rather something else.

提交回复
热议问题