Browse Source

Workaround to send the email with securely configured servers

Brendan Abolivier 8 years ago
parent
commit
c4b2f1750c
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      server.js

+ 2
- 1
server.js View File

85
     // - parameters for sending the mail(s)
85
     // - parameters for sending the mail(s)
86
     let params = {
86
     let params = {
87
         subject: req.body.subj,
87
         subject: req.body.subj,
88
-        from: req.body.name + ' <' + req.body.addr + '>',
88
+        from: req.body.name + '<' + settings.mailserver.user + '>'
89
+        replyTo: req.body.name + ' <' + req.body.addr + '>',
89
         html: req.body.text
90
         html: req.body.text
90
     };
91
     };
91
     
92