Tôi cần tắt xác thực chứng chỉ ssl cho mục đích phát triển nhưng tôi không tìm thấy bất kỳ điều gì về điều này trong tài liệu chính thức. http://swiftmailer.org/docs/introduction.htmlSwiftMailer - PHP - Cách tắt xác thực chứng chỉ ssl
Tôi đang sử dụng php 5.6 và Symfony2 (v2.7).
Các tài liệu tham khảo cấu hình của SwiftMailerBundle là:
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%'
Kiểm tra https://github.com/swiftmailer/swiftmailer/issues/571. Bạn có thể cần phải nâng cấp Swift lên phiên bản mới nhất và làm theo hướng dẫn của họ ở đó. – apokryfos