Add MAIL_FROM environment variable

Otherwise the mail comes from no-reply@meteor.com, which will fail a
lot of spam tests.

Closes #407
This commit is contained in:
Drew DeVault 2015-11-21 11:29:37 -05:00 committed by Maxime Quandalle
parent f565aed259
commit 41aa2f63b5
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -46,3 +46,9 @@ AccountsTemplates.configureRoute('changePwd', {
Popup.back();
},
});
if (Meteor.isServer) {
if (process.env.MAIL_FROM) {
Accounts.emailTemplates.from = process.env.MAIL_FROM;
}
}