Skip to content

Instantly share code, notes, and snippets.

@olragon
Forked from arunoda/meteor.smtp.bash
Created November 20, 2015 09:24
Show Gist options
  • Save olragon/94dc6c3d33b23cf6004b to your computer and use it in GitHub Desktop.
Save olragon/94dc6c3d33b23cf6004b to your computer and use it in GitHub Desktop.
# add the email package
meteor add email
// server/smtp.js
Meteor.startup(function () {
var smtp = {
username: 'your_username', // eg: server@gentlenode.com
password: 'your_password', // eg: 3eeP1gtizk5eziohfervU
server: 'smtp.gmail.com', // eg: mail.gandi.net
port: 25,
}
process.env.MAIL_URL = 'smtp://' + encodeURIComponent(smtp.username) + ':' + encodeURIComponent(smtp.password) + '@' + encodeURIComponent(smtp.server) + ':' + smtp.port;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment