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??
- Host: GitHub
- URL: https://github.com/mattmezza/php-mail-msg
- Owner: mattmezza
- License: mit
- Created: 2016-11-17T19:23:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T19:57:59.000Z (over 9 years ago)
- Last Synced: 2025-07-19T20:48:00.697Z (11 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mail-msg
Need to send an email from your webserver's MTA using the mail() function??
[](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