471,348 Members | 1,524 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

want to get bounced mail in different address

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","id@domain.com");

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.
--
Regards
Atanu
Jul 21 '05 #1
2 2948
Try Reply-To
"Atanu" <At***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
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","id@domain.com");

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.
--
Regards
Atanu

Jul 21 '05 #2
i forgot to mention...i tried the following as well but didnt help me...

mail.Headers.Add("Errors-To","id@domain.com");
mail.Headers.Add("X-Bounce-Recipient","id@domain.com");
mail.Headers.Add("Envelope-to","id@domain.com");
mail.Headers.Add("Reply-To","id@domain.com");

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" wrote:
Try Reply-To
"Atanu" <At***@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
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","id@domain.com");

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.
--
Regards
Atanu


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rob Imbeault | last post: by
7 posts views Thread by Monty | last post: by
3 posts views Thread by Jishnu | last post: by
12 posts views Thread by e_matthes | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.