Sending an email to myself but letting me reply back to another email

前端 未结 5 1180
盖世英雄少女心
盖世英雄少女心 2021-01-05 02:24

I\'m sending an email to myself using a module (nodemailer) on my web application\'s platform (node.js) from someone using my web app\'s contact page. Since, I\'m sending an

5条回答
  •  广开言路
    2021-01-05 02:45

    Add a replyTo field to the mailOptions object. That worked for me. It's also in their docs.

    The from will still show your email but replies will go to the replyTo email. Also, make sure you use the '"Fred Foo" ' syntax in the from field and you will see the sender's name on the conversation from field.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题