【发布时间】:2019-05-18 00:12:25
【问题描述】:
您好,我正在使用 swift mailer 在 symfony2 中发送电子邮件。
//app/config.yml
# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
username: "%mailer_user%"
password: "%mailer_password%"
port: "%mailer_port%"
encryption: "%mailer_encryption%"
spool: { type: memory }
还有 app/parametrs.yml
mailer_transport: smtp
mailer_host: smtp.office365.com
mailer_user: notify@location.com
mailer_password: test
mailer_port: 587
mailer_encryption: tls
但我一次又一次地出现以下错误。
app.ERROR: Exception occurred while flushing email queue: Expected response code 250 but got code "", with message "" [] []
谁能帮帮我
提前致谢
【问题讨论】:
标签: symfony-2.3