Problem using Reply-To in System.Net.Mail

S

Siong

I believe many have been facing the issue of allowing multiple recipients for
Reply-To in the latest version of service pack for .NET 2.0. It seems like
Microsoft has changed the way the ReplyTo is handled.

If ReplyTo property is not set, even though you use MailMessage.Headers.Add
to add the Reply-To header, the value for Reply-To header will be removed.
But if the ReplyTo property is used, it can only allow one recipient for
ReplyTo.

Before the service pack update for .NET 2.0, I was able to have multiple
Reply-To address using

MailMessage.Headers.Add(“Reply-Toâ€, “[email protected],[email protected]â€);

Thanks in advance.
 
A

Alexey Smirnov

I believe many have been facing the issue of allowing multiple recipientsfor
Reply-To in the latest version of service pack for .NET 2.0. It seems like
Microsoft has changed the way the ReplyTo is handled.

If ReplyTo property is not set, even though you use MailMessage.Headers.Add
to add the Reply-To header, the value for Reply-To header will be removed..
But if the ReplyTo property is used, it can only allow one recipient for
ReplyTo.

Before the service pack update for .NET 2.0, I was able to have multiple
Reply-To address using

MailMessage.Headers.Add(“Reply-To”, “[email protected],[email protected]”);

Thanks in advance.

According to MSDN: http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.replyto.aspx
A MailAddress that indicates the value of the ReplyTo field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top