Need to send an email from your webserver's MTA using the mail() function??
composer require mattmezza/php-mail-msg
$mail = new PHPMailMsg\Mail($to, $subject, $body, $replyTo, $from); //you can specify a $mailer as last param
if($mail->send()) {
//mail msg has been sent
} else {
// Ooopss
}
The library uses the default mail(...)
function and has been made with demonstration purposes.
Matteo Merola mattmezza@gmail.com