Click here to Skip to main content
15,906,624 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

While send a mail I need to add the Subject as below.

message.Subject = "Greetings !" ;

But the Subject is not accept the Special character '!' .
It showed an error.

"System.FormatException: Input string was not in a correct format"

How can we add the Special characters in Subject?

Thanks in Advance,
Saranya1388
Posted
Comments
thatraja 16-Nov-10 0:33am    
show your code so that we can guess at least

1 solution

I didn't feel any problem in sending special characters in subject.
You can refer this article for sending mails [^]
 
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