所以我所做的是,在包含PHPMailerAutoLoad.php之后,我将所有的SMTP设置写在一个文件中,但是它仍然抛出一个错误'Class PHPMailer not found.‘’。>
它显示‘致命错误:在第3行的mailsetting.php中找不到类'PHPMailer’,这显然意味着include语句正在正确执行。但是仍然没有包含PHPMailer类。我还尝试包含class.phpmai
错误:未知错误:在C:\xampp\htdocs\php中找不到类'PHPMailer‘-mailer\index.php:4堆栈跟踪:#0 {main}抛入C:\xampp\htdocs\php-mailer\index.phprequire("src/PHPMailer.php");$mail = new PHPMailer