瀏覽代碼

Typo + fixed log

Brendan Abolivier 8 年之前
父節點
當前提交
2404ecf9a8
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      server.js

+ 2
- 2
server.js 查看文件

@@ -85,7 +85,7 @@ app.post('/send', function(req, res, next) {
85 85
     // - parameters for sending the mail(s)
86 86
     let params = {
87 87
         subject: req.body.subj,
88
-        from: req.body.name + '<' + settings.mailserver.user + '>',
88
+        from: req.body.name + '<' + settings.mailserver.auth.user + '>',
89 89
         replyTo: req.body.name + ' <' + req.body.addr + '>',
90 90
         html: req.body.text
91 91
     };
@@ -95,7 +95,7 @@ app.post('/send', function(req, res, next) {
95 95
     // text entered by the user
96 96
     params.html = pug.renderFile('template.pug', params);
97 97
     
98
-    log.info('Sending message from ' + params.from);
98
+    log.info('Sending message from ' + params.replyTo);
99 99
     
100 100
     // Send the email to all users
101 101
     sendMails(params, function(err, infos) {