我需要禁用SSL证书验证以进行开发,但我在官方文档中没有找到相关信息。 http://swiftmailer.org/docs/introduction.html
我使用的是PHP 5.6和Symfony2(v2.7)。
SwiftMailerBundle的配置参考如下:
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%'