【问题标题】:Swiftmailer email issueSwiftmailer 电子邮件问题
【发布时间】: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


    【解决方案1】:

    “SMTP 错误 554 是比较模糊的错误代码之一,但通常是由于接收服务器在 From 或 To 标头中看到了它不喜欢的内容。这可能是由识别您的机器的垃圾邮件陷阱引起的作为中继,或作为不受信任的机器从您的域发送邮件。” - STMP error 554

    【讨论】:

    • 我正在尝试从测试服务器发送邮件,但它有不同的错误。 app.ERROR:刷新电子邮件队列时发生异常:预期响应代码为 250,但得到代码“”,消息为“”[][]
    • 和代码返回响应 1. $sendResult = $this->mailer->send($emailMessage);
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-05
    相关资源
    最近更新 更多