1.0.9 • Published 6 years ago

mailsac-wrapper v1.0.9

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

mailsac-wrapper

Node library for interacting with Mailsac mail platform - creates and checks temporary email mailboxes

Quick example

var MailBox = require('mailsac-wrapper');

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

// get the address
mailbox.generateEmailAddress()
  .then(function(addr) {
    console.log('email addr: ', + addr);
  });

// get the first message from inbox matching a filter string as subject
mailbox.getInbox(emailAddress, filterText, t)
  .then(function(foundEmail) {
    console.log('foundEmail :', foundEmail);
  });

// get the body of a mail message (exclude attachments)
mailbox.getMessage(emailAddress, messageId)
  .then(function(fullMessage) {
    console.log('full message :', fullMessage);
  });
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago