mediashare/generator-email

Generate email address disposable temporary.

0.0.2 2020-12-30 12:17 UTC

This package is auto-updated.

Last update: 2021-03-29 00:53:11 UTC


README

Installation

composer require mediashare/generator-email

Usage

Generate new email address:

<?php
require 'vendor/autoload.php';
$mail_generator = new \Mediashare\Mail\Generator();
$mail = $mail_generator->run();
echo 'Email: '.$mail['email']."\n";
echo 'Url: '.$mail['inbox']."\n";

Check inbox from email generated:

<?php
require 'vendor/autoload.php';
echo "Mails:\n";
$inbox = new \Mediashare\Mail\InBox($mail['email']);
$mails = $inbox->run();
if (empty($mails)):
    echo "0 mail from inbox.\n";
else:
    var_dump($mails);
endif;