Php Mailinator API library
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

MahanaMailinatorAPI

Software License

Php Mailinator API library

Token

Create a Mailinator account, login, and find your token at https://www.mailinator.com/settings.jsp

Requirements

You need to have the cURL-extension installed on your server. PHP 5.4 will suffice.

Installation

composer require jrmadsen67/mahana-mailinator-api

Usage

$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);