【问题标题】:Symfony SwiftmailerBundle Configuration ErrorSymfony SwiftmailerBundle 配置错误
【发布时间】:2014-03-13 11:32:11
【问题描述】:

当我遇到错误时

config.yml 中的 Swiftmailer 配置是,

transport: smtp
host:      localhost
username:  %mailer_user%
password:  %mailer_password%

错误是,

Swift_TransportException: Connection could not be established with host 127.0.0.1 [No connection could be made because the target machine主动拒绝它。#10061]

谁能帮我做配置。

提前致谢。

【问题讨论】:

    标签: symfony configuration smtp swiftmailer


    【解决方案1】:
    swiftmailer:
    transport: "%mailer_transport%"
    host:      "%mailer_host%"
    username:  "%mailer_user%"
    password:  "%mailer_password%"
    spool:     { type: memory }
    

    【讨论】:

    • 您能否编辑您的答案以包含对此代码的解释?
    • 同样的错误,上面提到的也是这个配置。
    猜你喜欢
    • 1970-01-01
    • 2014-10-04
    • 1970-01-01
    • 2022-06-16
    • 1970-01-01
    • 2021-02-06
    • 2012-02-05
    • 2018-12-20
    • 1970-01-01
    相关资源
    最近更新 更多