PHPHub5 邮件发送过程是怎样的,需要依赖哪些东西才能正常发送?
我部署了一个phphub,想搭建个论坛,其他的都ok了,现在有个问题是邮件发送的问题,我确定我的配置是没有问题的。
MAIL_DRIVER=smtp
MAIL_HOST=smtpdm.aliyun.com
MAIL_PORT=25
MAIL_USERNAME=custom@****.com
MAIL_PASSWORD=*******
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=custom@*****.com
MAIL_FROM_NAME=****
希望有人能分享一下经验。我看源码应该是用了job和队列。我对这两块不是很懂,是不是还有其他配置?
声明:我不是用homestead搭建的环境,是用自己的环境。不知道是不是缺少什么?
问题补充:
日志中的错误
local.ERROR: ErrorException: quoted_printable_encode() expects parameter 1 to be string, object given in /usr/share/nginx/phphub5/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ContentEncoder/NativeQpContentEncoder.php:95
Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2,'quoted_printabl...', '/usr/share/ngin...', 95, Array)
#1 /usr/share/nginx/phphub5/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ContentEncoder/NativeQpContentEncoder.php(95): quoted_printable_encode(Object(Naux\Mail\SendCloudTemplate))
...
推荐文章: