PHP wrapper for the Mailinator.com API
, (*1)
Php Mailinator API library, (*2)
Create a Mailinator account, login, and find your token at https://www.mailinator.com/settings.jsp, (*3)
You need to have the cURL-extension installed on your server. PHP 5.4 will suffice., (*4)
composer require jrmadsen67/mahana-mailinator-api, (*5)
composer require jrmadsen67/mahana-mailinator-api
$token = 'whateveryourtokenisfromabove'; $mahanaMailinator = new jrmadsen67\MahanaMailinatorAPI\MahanaMailinatorAPI($token); //Get messages in inbox// $inbox = 'myinbox'; $messages = $mahanaMailinator->fetchInbox($inbox); //Get a message// $message = $mahanaMailinator->fetchMail($msgId); //Delete a message// $status = $mahanaMailinator->deleteMail($msgId);
Sources Download
MIT