diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-21 11:29:37 -0500 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-11-25 10:12:43 -0800 |
commit | 41aa2f63b59afbdd65c01e708472b3c71d909c40 (patch) | |
tree | 0ef65713b8fec53d55213b543b7080a5891c6907 /config | |
parent | f565aed2596baaf9cd3da63110068177f7461e8e (diff) | |
download | wekan-41aa2f63b59afbdd65c01e708472b3c71d909c40.tar.gz wekan-41aa2f63b59afbdd65c01e708472b3c71d909c40.tar.bz2 wekan-41aa2f63b59afbdd65c01e708472b3c71d909c40.zip |
Add MAIL_FROM environment variable
Otherwise the mail comes from no-reply@meteor.com, which will fail a
lot of spam tests.
Closes #407
Diffstat (limited to 'config')
-rw-r--r-- | config/accounts.js | 6 |
1 files changed, 6 insertions, 0 deletions
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; + } +} |