I have installed phpmailer for cpanel using composer successfully.
The location of PHPMailer is at
root\vendor\phpmailer\phpmailer
now I want to use PHPmailer in one of my files at
root\public_html
What changes do I have to make to the following lines ?
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'vendor/autoload.php';
the code is not working with the above configuration.The rest of code is same as that given in the documentation (with correct values filled)