如何在emailJS、nodejs mailer中设置回复



我试图使用节点应用程序中的库emailjs发送邮件。一切都正常,只是我不知道如何在配置中设置"reply to"属性。这是我的代码

var email1   = require(node_path + "emailjs/email");
var server1  = email1.server.connect(mail_sever_conf);

//prepare the message
var msg1 = {
        from : 'myfrommail@gmail.com',
        to:'tomailid@gmail.com',
        subject: 'My App mail subject',
        text : 'Some mail content',
        replyTo : 'notification@myapp.com' //This is what I tried
        };          

        //send the email
        server1.send(msg1, function(err, message) { console.log(err || message); });

我也不知道如何在他们的github页面上设置,有人能帮我吗?

尝试使用这个:

reply-to

https://github.com/eleith/emailjs/blob/master/smtp/message.js线路:93

它们只是作为Header传递。所以它应该起作用。


在项目中提出的一个问题中对此进行了解决/评论:https://github.com/eleith/emailjs/issues/54

最新更新