I need help, I need to send emails and at the time of registering a ticket you should send one but only save it in the database and do not send mail and send this error "class phpmailer not found in (directory where the file is) ".
According to the documentation:
<?php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
//Load composer's autoloader
require 'vendor/autoload.php';
$mail = new PHPMailer(true);