当我尝试使用 mime-mail-ses 包发送电子邮件时,我收到“TlsNotSupported”错误消息。我阅读了这个文档(如下),它似乎为 STARTTLS(而不是 TLS)指定了端口号,但 mime-mail-ses 或 mime-mail 似乎都没有办法指定端口号,如果这实际上是一种补救措施问题。
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html
ses = SES seFrom seTo seAccessKey seSecretKey seSessionToken seRegion
sMail' = simpleMail' mFrom mTo body L.empty
main = do
manager <- newManager defaultManagerSettings
renderSendMailSES manager ses sMail'
我收到以下消息:
Exception: HttpExceptionRequest Request {
...
port = 443
...}
TlsNotSupported