node-mailforspam

1.0.1 • Public • Published

Mail for Spam Node.js module

Provide MailForSpam.com functionality for you Node.js powered applications.

If you want make applications which wants to retrieve emails with some verification codes or links or gets some external notifications from email you can use this module with random account.

Usage

Install:

npm i node-mailforspam

Usage:

const Mailforspam = require('.');
 
//Create module instance
let mail = new Mailforspam('TestAccount');
 
//Get emails list from first two pages
let emails = [...await mail.list(), ...await mail.list(2)];
 
//Get first email plain text
let email = await mail.read(emails[0].id, 'text');
 
//Change account
mail.changeAccount('MyTestAccount2');
 

/node-mailforspam/

    Package Sidebar

    Install

    npm i node-mailforspam

    Weekly Downloads

    1

    Version

    1.0.1

    License

    Apache-2.0

    Unpacked Size

    5.27 kB

    Total Files

    8

    Last publish

    Collaborators

    • lailune