Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2019-10-12 (5 hours ago) | | Not enough user ratings | | Total: 292 This week: 2 | | All time: 7,328 This week: 167 |
|
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. | |
|
|
Innovation award
Nominee: 23x
Winner: 2x |
|
Details
Tiny Mailer ?? ????????? ??????
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.