How to solve this Error Message “The specified string is not in the form required for a subject”?

This error message “The specified string is not in the form required for a subject.”  can be solve using this code,

subject= Regex.Replace(subject, @”[^ -~]”, “”);

mail.Subject = Regex.Replace(subject, “[^ -~]”, “”)

Here are my reference:
http://petesbloggerama.blogspot.com/2007/09/specified-string-is-not-in-form.html
http://forums.asp.net/t/1117321.aspx

Advertisements
This entry was posted in ASP.NET 2. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s