📧 dropmail nodejs
Temporal mail for node, that works for now :p
using dropmail.me
What's it about
DropMail api for NodeJS, for generating random temporal emails and reading the inbox, you can also forward emails to other emails :)
Internally it connects to
wss://dropmail.me/websocket
via websocket to get emails and listen for inwards emails
Installing
Npm:
$ npm install dropmail
Usage
NodeJS
What better explanation that the real deal, here is what it can do:
const DropMail = ; /** * DropMail will create a temporal email for a random domain * or a specific one if you pass it in to the constructor */let mail = '10mail.org'; /** * Event for when mail is ready * you need to listen to this event or to 'address' event * before you can make use of 'forward' and get the 'address' and 'hash' */mail; /** * Event for when generated address is received */mail; /** * Event for when list of domains is received */mail; /** * Event for when an email is received */mail; process;
CLI
create
Create a temp email, and listen to inbox:
dropmail create [--domain <domain> --forward <email>]
domains
List all available domains
dropmail domains
Api
DropMail
This is the only thing you will use.
Signature:
EmailAddress
Email address little thingy: