Fatal error: Class 'PHPMailer' not found
问题 I tried : include_once(\'C:\\Inetpub\\wwwroot\\php\\PHPMailer\\PHPMailerAutoload.php\'); Fatal error: Class \'PHPMailer\' not found in C:\\Inetpub\\wwwroot\\php\\index.php on line 151 I place the PHPMailerAutoload.php in the same directory as my script. Can someone help me with this ? 回答1: all answers are outdated now. Most current version (as of Feb 2018) does not have autoload anymore, and PHPMailer should be initialized as follows: <?php require("/home/site/libs/PHPMailer-master/src