mattmezza / php-mail-msg
Need to send an email from your webserver's MTA using the mail() function??
v1.0
2016-11-17 19:57 UTC
This package is auto-updated.
Last update: 2026-03-17 13:47:17 UTC
README
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