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: 2024-04-17 09:50:52 UTC


README

Need to send an email from your webserver's MTA using the mail() function??

Build Status

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