Problem using Reply-To in System.Net.Mail

  • Thread starter Thread starter Siong
  • Start date Start date
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.
 
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.
 
Back
Top