A simple class email send
composer require coffeebreaks/mail
$mail = new \coffeebreaks\Mail();
$mail->config('smtp.your-host.com', 'your-user',
'you-pass', port);
$mail->add('[email protected]', 'Suport',
'[email protected]', 'Test classe Mail',
"This is a email with <b>PhpMailer</b> and generic class <i>Mail</i>");
if ($mail->getResult()){
echo "Success :)";
}