summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-11-21 11:29:37 -0500
committerMaxime Quandalle <maxime@quandalle.com>2015-11-25 10:12:43 -0800
commit41aa2f63b59afbdd65c01e708472b3c71d909c40 (patch)
tree0ef65713b8fec53d55213b543b7080a5891c6907
parentf565aed2596baaf9cd3da63110068177f7461e8e (diff)
downloadwekan-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.md2
-rw-r--r--config/accounts.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/History.md b/History.md
index 3e4ae42c..fce84bf4 100644
--- a/History.md
+++ b/History.md
@@ -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;
+ }
+}