DownloadTiny 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;
}
|