【发布时间】:2016-07-27 01:55:00
【问题描述】:
出于开发目的,我需要禁用 ssl 证书的验证,但我在官方文档中没有找到任何相关信息。 http://swiftmailer.org/docs/introduction.html
我正在使用 php 5.6 和 Symfony2 (v2.7)。
SwiftMailerBundle的配置参考为:
swiftmailer:
transport: smtp
username: ~
password: ~
host: localhost
port: false
encryption: ~
auth_mode: ~
spool:
type: file
path: '%kernel.cache_dir%/swiftmailer/spool'
sender_address: ~
antiflood:
threshold: 99
sleep: 0
delivery_address: ~
disable_delivery: ~
logging: '%kernel.debug%'
【问题讨论】:
-
检查github.com/swiftmailer/swiftmailer/issues/571。您可能需要将 Swift 升级到最新版本并按照他们那里的说明进行操作。
标签: php symfony ssl ssl-certificate swiftmailer