I'm trying to send an email through php using PHP MAILER but I always get the class error nonexistent and I do not know what to do.
Error:
Fatal error: Class 'PHPMailer' not found in /home/ortop753/public_html/teste.php on line 6
Code:
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use php\composers\PHPMailer;
use php\composers\Exception;
require 'php/composers/Exception.php';
require 'php/composers/PHPMailer.php';
require 'php/composers/SMTP.php';
$mail = new PHPMailer; // Passing 'true' enables exceptions
try {
//.... //
SRC PHPMailer:
class PHPMailer
{
// A Classe esta correta