Last active
April 24, 2018 14:57
-
-
Save skinnyjames/a201f3a4f51c1ec23f0bccdb943e7874 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var email = require('email-anonymizer')({ | |
domain: 'xyz.com', | |
}) | |
email.send({ | |
'from': 'seangregory@protonmail.com', | |
'to': 'seanchristophergregory@gmail.com', | |
'body': 'hello world' | |
}) | |
.then((response) => { | |
console.log(response) | |
}) | |
.catch((err) => { | |
console.error(err) | |
}) | |
/* | |
{ | |
id: 'uniqueid', | |
generatedEmailAddress: 'uniqueid@xyz.com', | |
success: true, | |
} | |
*/ | |
// OR | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment