hboers/mailinator

laravel package for https://github.com/thepieterdc/mailinator_php

dev-master 2015-05-09 18:07 UTC

This package is not auto-updated.

Last update: 2024-11-23 16:47:03 UTC


README

A laravel package for mailinator_php.

Software License

PHP wrapper for the Mailinator.com API

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.2 will suffice.

Usage

require 'Mailinator.php';
$mailinator = new Mailinator('my_token');

//Get messages in inbox//
print_r($mailinator->fetchInbox('randominbox'));

//Get the id by running fetchInbox() first//
print_r($mailinator->fetchMail('mail-id'));

License

The MIT License (MIT). Please see License File for more information.