$f3->mset(array(
...
"AUTOLOAD" => "app/;../fatfree/lib/vendor/",
namespace Controller;
use \PHPMailer\PHPMailer\PHPMailer;
use \PHPMailer\PHPMailer\Exception;
class Test extends \Controller {
public function index($f3){
$mail = new PHPMailer(true);
}
}
require_once "PHPMailerAutoload.php";
The others you should check the format folder you store PHPMailer it should align with namespace and it's case sensitive.