Laravel 5.5 - 邮件不与`mail`驱动程序一起使用

Rah*_*san 3 php email swiftmailer php-7 laravel-5.5

在我的Laravel设置中,邮件始终有效,直到我将框架升级到5.5(从5.4开始).现在它总是在以下情况下失败:

在此输入图像描述

请注意以下事项:

  1. 本地env上的邮件服务器= http://www.toolheap.com/test-mail-server-tool/users-manual.html香港专业教育学院使用这个就像5yrs一样(这是一键安装/没有戏剧/没有-config/no-error测试邮件服务器)直到昨天它工作,所以我不能改变它的东西
  2. mail()如果直接调用php的功能
  3. 我设置的邮件驱动程序只是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

非常感谢

Rah*_*san 8

找到原因,因此必须找到替代解决方案.

[原因]:Swiftmailer不再支持mail运输

(看这里)

https://github.com/swiftmailer/swiftmailer/issues/866

https://github.com/octobercms/october/issues/3256

[解决方案]: 使用smtp而不是mail.