0.1.5 • Published 6 years ago
temporary-mail v0.1.5
:boom: Careful: This package is no longer maintained and is only here for historic reasons. This means you should very likely not use it. You have been warned. :boom:
temporary-mail
Temporary mailboxes for end-to-end testing, QA testing and crawling
Install
npm install temporary-mail
Usage
import TemporaryMail from 'temporary-mail'
const mail = new TemporaryMail()
// Get an new mail address
const address = await mail.getAddress()
console.log(`address`, address)
// Read all emails
const mails = await mail.getMails()
console.log(`mails`, mails)
// Wait till a specific email arrives
const testMail = await mail.pollTillSubject(/test/i)
console.log(`testMail`, testMail)
Licence
MIT