want to get bounced mail in different address

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Im using System.Web.Mail to send emails to the users. Now i want to receive
the bounced mails in a different email id from that of the from(sender) id.
Im doing something like this...

MailMessage mail=new MailMessage();
mail.Headers.Add("Return-Path","(e-mail address removed)");

but the bounced mails are coming back to from id.

Initially i thought smtp server is overwritng return-path informations with
the from id and i thought of some configuration changes over there(which is
not very easy as this involvese lot of management permissions issues). But
then i downloaded a trial version of a component and tried to do the same
using that component and using the same smtp server and it worked. Means the
bounced mails are coming back to the return-path id , not to the from id.
So that makes me feel that the problem is not with smtp server.
Can anybody throw some light here. I want to stick to System.Web.Mail for now.
To make it simple im not posting the actual codes here. But if it's required
i can do that in the next post.

please bear me if its not the right thread for this question.
 
i forgot to mention...i tried the following as well but didnt help me...

mail.Headers.Add("Errors-To","(e-mail address removed)");
mail.Headers.Add("X-Bounce-Recipient","(e-mail address removed)");
mail.Headers.Add("Envelope-to","(e-mail address removed)");
mail.Headers.Add("Reply-To","(e-mail address removed)");

And i think Reply-to means the receiver would reply to that id although it's
been sent from another id. And my requirement is to catch the bounced mails
in one defined id.


--
Regards
Atanu


Stephany Young said:
Try Reply-To
 
Back
Top