Class 'PHPMailer' not found

2026-02-12 03:54:01

1、先打开'app_debug'=> true,错误如下图所示。

Class 'PHPMailer' not found

2、查看发送邮件函数。一般像这种windows上面可以运行,linux上不能运行,首先考虑看是否是遵循严格大小写区别。这里直接将phpmailer换成文件名的PHPMailer。将smtp换成 SMTP。

Class 'PHPMailer' not found

Class 'PHPMailer' not found

3、上传代码到服务器,再试下接口发现问题解决了。

Class 'PHPMailer' not found

猜你喜欢