Explorar el Código

Typo + fixed log

Brendan Abolivier hace 8 años
padre
commit
2404ecf9a8
Firmado por: Brendan Abolivier <contact@brendanabolivier.com> ID clave GPG: 8EF1500759F70623
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      server.js

+ 2
- 2
server.js Ver fichero

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