-
-
Save psibal/e5d01b8e6630dfe8c8443171011d5f90 to your computer and use it in GitHub Desktop.
Configure SMTP with Meteor --> https://github.com/LeCoupa/awesome-cheatsheets
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
| # add the email package | |
| meteor add email |
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
| // server/smtp.js | |
| Meteor.startup(function () { | |
| smtp = { | |
| username: 'your_username', // eg: [email protected] | |
| 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