0
I’m trying to send an email by php using PHP MAILER but I always get the missing class error and no longer 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
The path of the requires is correct?
– Darlei Fernando Zillmer