Last active
February 12, 2016 18:58
-
-
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
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
// 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; | |
}); |
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
// 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