PHP Swift Mailer Setup

旧巷老猫 提交于 2019-12-06 17:47:25

Open swift_required.php file. There's a require() on line 22. Adjust it's path to match lib/classes/Swift.php

Maybe it helps when You check paths in swift_required.php, they must be correct from point of called out file

try using absolute path instead of relative path

for example in linux

require_once '/var/www/project/mailer/lib/swift_required.php' ;

alternatively try replacing above line with

require_once '/path/to/mailer/lib/swift_init.php';

swift mailer uses its own class autoloader, do you already have any other autoloader?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!