An open API service indexing awesome lists of open source software.

https://github.com/mattmezza/php-mail-msg

Need to send an email from your webserver's MTA using the mail() function??
https://github.com/mattmezza/php-mail-msg

Last synced: 9 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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

[![Build Status](https://travis-ci.org/mattmezza/php-mail-msg.svg?branch=master)](https://travis-ci.org/mattmezza/php-mail-msg)

----

`composer require mattmezza/php-mail-msg`

```php
$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