Brendan Abolivier преди 8 години
родител
ревизия
2404ecf9a8
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key 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) {