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 email to myself, if I reply to the email, I'll be sending an email to myself again, and not sending it to the email in the "from" header that's set in the email's header. How could I let clients (gmail, yahoo, etc) know which email should be replied to?
I'm using Nodemailer module for Node.js to do the sending from a Ubuntu Linux server.
Usually adding a Reply-To:
header will be sufficient for indicating which address replies should be sent to.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With