Skip to content

Instantly share code, notes, and snippets.

@cadecairos
Last active June 10, 2016 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cadecairos/f6999c51f6cbe81d7fd8500847dc046d to your computer and use it in GitHub Desktop.
Save cadecairos/f6999c51f6cbe81d7fd8500847dc046d to your computer and use it in GitHub Desktop.
const hatchet = require('hatchet');
const sessionData = require('./session_data.json');
sessionData.forEach((session) => {
hatchet.send("mozfest_session_proposal_2016", session, (err, response) => {
if (err) {
console.log("Failed to send proposal confirmation email.")
} else {
console.log(`Proposal confirmation email successfully sent to ${session.email}!`)
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment