I\'d like to use the latest PHPMailer library with require_once()
instead of messing around with Composer. I\'d like a pure xcopy deployment with minimal fuss.
This worked for me, I also downloaded phpmailer from this address
https://sourceforge.net/projects/phpmailer/
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;
require '/source/PHPMailer2/src/Exception.php';
require '/source/PHPMailer2/src/PHPMailer.php';
require '/source/PHPMailer2/src/SMTP.php';