Last active
October 17, 2016 09:23
-
-
Save Technoash/51e77e6a8a88630b931ea5a33e72c0c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| //eddie | |
| //do | |
| //npm install --save mailgun-js | |
| var api_key = 'key-efb6c4bf91205c6e52f7960537f8289d'; | |
| var domain = 'mail.perform.technoash.com'; | |
| var mailgun = require('mailgun-js')({apiKey: api_key, domain: domain}); | |
| var data = { | |
| from: 'PerForm Accounts <[email protected]>', | |
| to: '[email protected]', | |
| subject: 'Your new perForm account!', | |
| body: 'go to http:// to activate your account', | |
| html: '<a href="google.com">click here to activate your account</a>' | |
| }; | |
| mailgun.messages().send(data, function (error, body) { | |
| console.log(body); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment