Skip to content

Get and use a free disposable temporary mail directly in your code using the temp-mail.org service

Notifications You must be signed in to change notification settings

makebit/temp-mail.org

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Temp-Mail.org

Get and use a free disposable temporary mail directly in your PHP code using the temp-mail.org service API.

USAGE

// Generate a random temp email
$tempMail = new TempMail();
// Use the mail passed as parameter
$tempMail = new TempMail("test@maileme101.com");
// Get all the mails (from the newest to the oldest) as an array
$tempMail->getMails();
// Get a limited number of mails the mails as an array
$tempMail->getMails(10);
// Get the last mail
$tempMail->getLastMail();
// Delete a mail
$tempMail->deleteMail($mail)
// Print all the mails with some formatting
$tempMail->echoMails($tempMail->getMails());
// Print the last mail with some formatting
$tempMail->echoMail($tempMail->getLastMail());

API

https://temp-mail.org/api

About

Get and use a free disposable temporary mail directly in your code using the temp-mail.org service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages