无法与 [#0] 建立连接
Connection could not be established with [ #0]
我正在使用 symfony 2 框架,尝试使用 swiftmailer 发送邮件。
我收到错误消息:无法使用 "myhost" [#0]
建立连接
我的conf.yml:
swiftmailer:
transport: smtp
encryption: ssl
auth_mode: login
port: 587
host: myHostWebMail eg: mail.company.fr
username: xx@company.fr
password: mypassword
delivery_address: EmailAdress
disable_delivery: false
当我将端口更改为 26 时,出现此错误:
Connection could not be established with host mail.company.fr [No
connection could be established because the target computer expressly refused.#10061]
问题出在哪里?
实际上少了一行:
spool: {type: memory }
我正在使用 symfony 2 框架,尝试使用 swiftmailer 发送邮件。 我收到错误消息:无法使用 "myhost" [#0]
建立连接我的conf.yml:
swiftmailer:
transport: smtp
encryption: ssl
auth_mode: login
port: 587
host: myHostWebMail eg: mail.company.fr
username: xx@company.fr
password: mypassword
delivery_address: EmailAdress
disable_delivery: false
当我将端口更改为 26 时,出现此错误:
Connection could not be established with host mail.company.fr [No
connection could be established because the target computer expressly refused.#10061]
问题出在哪里?
实际上少了一行:
spool: {type: memory }