Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2019-10-12 (5 hours ago) ![RSS 2.0 feed](/graphics/phpclasses/rss2.png) | | Not enough user ratings | | Total: 292 This week: 2 | | All time: 7,328 This week: 167![Up](/graphics/phpclasses/up.png) |
|
Description | | Author |
This class can compose and send email messages with mail() function.
It takes an array of arguments that define parameters like the message subject, body, sender and recipient addresses.
The class assembles the MIME message body and sends it using the PHP mail() function. | |
![Picture of Peter Kahl Picture of Peter Kahl](/graphics/unknown.gif) |
|
Innovation award
![Innovation award](/graphics/phpclasses/innovation-award-logo.png) Nominee: 23x
Winner: 2x |
|
Details
Tiny Mailer ?? ????????? ??????
![If this project has business value for you then don't hesitate to support me with a small donation.](https://img.shields.io/badge/Donations-via%20Paypal-blue.svg)
Light-weight PHP mailer that uses the mail()
function. Plain text only. Nothing fancy. UTF-8 capable.
Usage Example
use peterkahl\tinyMailer\tinyMailer;
$body = '???? Jane,
I am so happy to use this simple mailer.
John Roe';
$arr = array(
'sendto-name' => 'Jane Doe',
'sendto-mail' => 'jane.doe@destination.whatever',
'from-name' => 'John Roe',
'from-mail' => 'john.roe@origin.whatever',
'message-txt' => $body,
'subject' => 'Some subject text ?????',
);
$id = tinyMailer::send($arr);
if ($id === false) {
echo 'Failed';
}
else {
echo 'Successfuly sent message with ID '. $id;
}
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.