jrmadsen67/mahana-mailinator-api

PHP wrapper for the Mailinator.com API

dev-master 2015-10-16 07:52 UTC

This package is auto-updated.

Last update: 2024-10-08 13:38:12 UTC


README

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