Click here to Skip to main content
15,908,673 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, how to retrieve the custom header value of bounced mail using pop3 server (.net 2003)
mail sent with custom message like below
MailMessage Ml = new MailMessage();
Ml.Headers.Add("abcde","lmnop");
how to retrieve the added value (how to read all the header value of bounced mail?)
Posted

sending mail is a different module (SMTP).
reading is other module in POP3 and hence there is nothing like get("key")
also in the bounced mail through program im unable to read the custom header but could view the values in outlook options. anyway to read all the contents that i could view in the outlook?
 
Share this answer
 
selva_82 wrote:
how to retrieve the added value (how to read all the header value of bounced mail?)

I'm not sure if I have understood this correctly, but if I have, you could do this:

Ml.Headers.Get("abcde"); // output: lmnop

This would get the value of the header named "abcde", therefore it outputs "lmnop".

Is this what you're looking for?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900