1.0.9 • Published 5 years ago

mailsac-wrapper v1.0.9

Weekly downloads
5
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago