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 | |
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
-rw-r--r-- | History.md | 2 | ||||
-rw-r--r-- | config/accounts.js | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -11,7 +11,7 @@ This release features: * Support images attachments copy pasting. Thanks to GitHub users AlexanderS, fisle, floatinghotpot, FuzzyWuzzie, ndarilek, -and xavierpriour for their contributions. +SirCmpwn, and xavierpriour for their contributions. # v0.9 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; + } +} |