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

前端 未结 5 1197
盖世英雄少女心
盖世英雄少女心 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:54

    I had exactly the same problem and found the solution in this StackOverflow thread, which pointed to this forum:

    If the "From" address is either the same as the "To" address, or is configured in GMail Settings as one of the 'Send As...' accounts, Gmail replies to the "To" address instead of the "Reply-To" address. An easy workaround is to specify a non-Gmail "From" address

    I wasted quite a bit of time before finding the solution. Hope this helps out other people.

提交回复
热议问题