How can I add a "ReplyTo" email address, so that I can direct all bounced emails to this address (i.e. in response to emails sent out that aren't valid). I've tried adding a "ReplyTo" header i.e. message.AddCustomHeader("ReplyTo", "bounceback@mydomain.com") but haven't succeeded in getting the replies directed to my bounce back email address. It's not an issue with my ISP or POP3 server as I can make this work with other, though less-preferred email components. Maybe my custom header "ReplyTo" is incorrect and doesn't conform with standard mail protocols.
Matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been using Reply-To for a long time now and my bounce backs still come to the To address. I would absolutely LOVE for the bounce backs to go to the Reply-To address or figure out some way to make the bounce backs go to a different address than the To. I always figured that email servers just always used the To address, but is there a way to get them to use one of the other fields for bounce backs?
The way I'm adding the Reply-To is as follows:
message.AddCustomHeader( "Reply-To", replyTo );
Thanks,
Roy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The envelope-from address is a value that is used during the initial SMTP negotiation, and it gets inserted as a "Return-path" header by the server. It works very reliably for managing bounces, and to some extent with vacation messages, etc. Although there are some RFCs which don't like this, it seems to work in practice with most MTAs. (see: http://en.wikipedia.org/wiki/Bounce_message\)
-Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can I add a "ReplyTo" email address, so that I can direct all bounced emails to this address (i.e. in response to emails sent out that aren't valid). I've tried adding a "ReplyTo" header i.e. message.AddCustomHeader("ReplyTo", "bounceback@mydomain.com") but haven't succeeded in getting the replies directed to my bounce back email address. It's not an issue with my ISP or POP3 server as I can make this work with other, though less-preferred email components. Maybe my custom header "ReplyTo" is incorrect and doesn't conform with standard mail protocols.
Matt
Hi-
Did you include a hyphen in between "Reply" and "To"? That might be the problem.
You may also want to consider using the envelopefrom address---otherwise, human replies may go to the bounceback address....
-Mike
I've been using Reply-To for a long time now and my bounce backs still come to the To address. I would absolutely LOVE for the bounce backs to go to the Reply-To address or figure out some way to make the bounce backs go to a different address than the To. I always figured that email servers just always used the To address, but is there a way to get them to use one of the other fields for bounce backs?
The way I'm adding the Reply-To is as follows:
message.AddCustomHeader( "Reply-To", replyTo );
Thanks,
Roy
I have inserted the hyphen but I haven't tried the envelope from address.
Hi-
The envelope-from address is a value that is used during the initial SMTP negotiation, and it gets inserted as a "Return-path" header by the server. It works very reliably for managing bounces, and to some extent with vacation messages, etc. Although there are some RFCs which don't like this, it seems to work in practice with most MTAs. (see: http://en.wikipedia.org/wiki/Bounce_message\)
-Mike