Skip to content

Instantly share code, notes, and snippets.

@esromneb
Last active February 12, 2016 18:58
Show Gist options
  • Save esromneb/8576425 to your computer and use it in GitHub Desktop.
Save esromneb/8576425 to your computer and use it in GitHub Desktop.
Name this file server/email.js and then also add that to your .gitignore
// put me at server/email.js
Meteor.startup(function () {
var user = "user";
var password = "password";
var serverAndPort = "smtp.example.com:9999";
var string = 'smtp://' + user + ':' + password + '@' + serverAndPort;
process.env.MAIL_URL = string;
});
// put me at server/somethingelse.js
debugSendEmail = function() {
Email.send({
from: "",
to: "",
subject: "Subject",
text: "Something happened"
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment