Swiftmail +亚马逊AWS

时间:2018-07-16 21:16:20

标签: amazon-web-services smtp yaml swiftmailer

我正在将swiftmail与Amazon AWS一起使用,这是我的配置:

swiftmailer:
   transport: '%mailer_transport%'
   host: '%mailer_host%'
   port: '%mailer_port%'
   encryption: "%mailer_encryption%"
   username: '%mailer_user%'
   password: '%mailer_password%'
   auth_mode: "%mailer_authmode%"
   spool: { type: memory }

这些是参数:

mailer_transport: smtp
mailer_host: email-smtp.eu-west-1.amazonaws.com
mailer_port: 465
mailer_encryption: ssl
mailer_user: SECRET_USER
mailer_password: SECRET_PASS
mailer_authmode: login

但是邮件发给这个错误:

app.ERROR: Exception occurred while flushing email queue: Connection could not be established with host email-smtp.eu-west-1.amazonaws.com [ #0] [] []

配置正确吗?

更新:这是防病毒问题:Avast阻止了端口465和587_上的出站连接。

现在swiftmail可以了,但是邮件没有发送给接收方-.-,并且没有错误!

0 个答案:

没有答案