From 41aa2f63b59afbdd65c01e708472b3c71d909c40 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 21 Nov 2015 11:29:37 -0500 Subject: Add MAIL_FROM environment variable Otherwise the mail comes from no-reply@meteor.com, which will fail a lot of spam tests. Closes #407 --- config/accounts.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/accounts.js b/config/accounts.js index d475e6b2..b1a4a177 100644 --- a/config/accounts.js +++ b/config/accounts.js @@ -46,3 +46,9 @@ AccountsTemplates.configureRoute('changePwd', { Popup.back(); }, }); + +if (Meteor.isServer) { + if (process.env.MAIL_FROM) { + Accounts.emailTemplates.from = process.env.MAIL_FROM; + } +} -- cgit v1.2.3-1-g7c22