Rah*_*san 3 php email swiftmailer php-7 laravel-5.5
在我的Laravel设置中,邮件始终有效,直到我将框架升级到5.5
(从5.4开始).现在它总是在以下情况下失败:
请注意以下事项:
mail()
如果直接调用php的功能mail
它仍然在这里sendmail
(你可以vardump $命令,它说/usr/sbin/sendmail -bs
) 这是.env
邮件:
MAIL_DRIVER=mail
MAIL_HOST=localhost
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Run Code Online (Sandbox Code Playgroud)
那么有谁知道如何解决这个问题?它只出演了laravel 5.5
非常感谢
找到原因,因此必须找到替代解决方案.
[原因]:Swiftmailer不再支持mail
运输
(看这里)
https://github.com/swiftmailer/swiftmailer/issues/866
https://github.com/octobercms/october/issues/3256
[解决方案]:
使用smtp
而不是mail
.
归档时间: |
|
查看次数: |
4703 次 |
最近记录: |