浏览代码

Workaround to send the email with securely configured servers

父节点
当前提交
c4b2f1750c
签署人:: Brendan Abolivier <contact@brendanabolivier.com> GPG 密钥 ID: 8EF1500759F70623
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      server.js

+ 2
- 1
server.js 查看文件

@@ -85,7 +85,8 @@ 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 + ' <' + req.body.addr + '>',
88
+        from: req.body.name + '<' + settings.mailserver.user + '>'
89
+        replyTo: req.body.name + ' <' + req.body.addr + '>',
89 90
         html: req.body.text
90 91
     };
91 92