Skip to content

Instantly share code, notes, and snippets.

@Technoash
Last active October 17, 2016 09:23
Show Gist options
  • Select an option

  • Save Technoash/51e77e6a8a88630b931ea5a33e72c0c7 to your computer and use it in GitHub Desktop.

Select an option

Save Technoash/51e77e6a8a88630b931ea5a33e72c0c7 to your computer and use it in GitHub Desktop.
//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 <accounts@mail.perform.technoash.com>',
to: 'ashneil.roy@gmail.com',
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