Exact error being given:Error: Class 'PHPMailer\PHPMailer\PHPMailer' not found in C:\wamp64\www\tutoring\web\environment.php on line 37
My code:
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
require __DIR__ . '../vendor/autoload.php';
Line 37:
// This is inside of a function but the uses and require are not
$mail = new PHPMailer;
My file tree:
autoload is in the right place and so is the PHPMailer class:
I've been trying to fix this for the past 2 hours. Every post I've seen with this issue has been resolved with something that doesn't fix mine.