我正在尝试使用sendmail驱动程序发送电子邮件,但它不起作用并且我没有收到任何错误。
我的 .env 文件:
MAIL_DRIVER=sendmail
MAIL_HOST=
MAIL_PORT=587
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
由于我没有错误,即使在laravel.log文件中我什至不知道从哪里开始检查,但我已经检查了正确的 sendmail 路径,而且它是正确的,我错过了什么?
我还读到您必须更改 /etc/hosts 中的某些内容,我对其进行了一些更改,添加了“domainexample.com”:
127.0.0.1 domainexample.com localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
这最后一件事正确吗?
侃侃尔雅
守着一只汪