PHP wrapper for the Mailinator.com API
PHP wrapper for the Mailinator.com API, (*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.2 will suffice., (*4)
``` php require_once 'src/Mailinator/Mailinator.php'; $mailinator = new Mailinator('my_token');, (*5)
//Get messages in inbox// try { print_r($mailinator->inbox('randominbox')); } catch(Exception $e) { // Process the error echo "Something went wrong: " . $e->getMessage(); }, (*6)
//Get a message// try { print_r($mailinator->message('mail-id')); } catch(Exception $e) { // Process the error echo "Something went wrong: " . $e->getMessage(); }, (*7)
//Delete a message// try { print_r($mailinator->delete('mail-id')); } catch(Exception $e) { // Process the error echo "Something went wrong: " . $e->getMessage(); } ```, (*8)
The MIT License (MIT). Please see License File for more information., (*9)