浏览代码

Add MAIL_FROM environment variable

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

Closes #407
Drew DeVault 9 年之前
父节点
当前提交
41aa2f63b5
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 1 1
      History.md
  2. 6 0
      config/accounts.js

+ 1 - 1
History.md

@@ -11,7 +11,7 @@ This release features:
 * Support images attachments copy pasting.
 * Support images attachments copy pasting.
 
 
 Thanks to GitHub users AlexanderS, fisle, floatinghotpot, FuzzyWuzzie, ndarilek,
 Thanks to GitHub users AlexanderS, fisle, floatinghotpot, FuzzyWuzzie, ndarilek,
-and xavierpriour for their contributions.
+SirCmpwn, and xavierpriour for their contributions.
 
 
 # v0.9
 # v0.9
 
 

+ 6 - 0
config/accounts.js

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