rr-guerrillamail

Node library for interacting with Guerrilla Mail - creates and checks temporary email mailboxes

Showing:

Popularity

Downloads/wk

149

GitHub Stars

2

Maintenance

Last Commit

3yrs ago

Contributors

2

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

rr-guerrillamail

Node library for interacting with Guerrilla Mail - creates and checks temporary email mailboxes

Quick example

// create a temporary email mailbox
var mailbox = new TempMailbox();

// get the address
mailbox.getEmailAddress()
    .then(function(addr) { console.log('email addr: ' + addr); })
    .then(function() {
        // wait for an email matching the predicate
        // in this example, send a message with subject containing "xyzzy" to the displayed address
        return mailbox.waitForEmail(function(m) {
            return (m.mail_subject.indexOf('xyzzy') != -1);
        });
    })
    .then(function(mail) {
        // log out the entire object of the email which matched
        // including mail_body, which is the content
        console.log(JSON.stringify(mail, null, 2));
        
        // delete the resulting email
        mailbox.deleteMail(mail.mail_id);
    });

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial