The specified string is not in the form required for a subject
Error Message: The specified string is not in the form required for a subject
Solution : Subject = subject.Replace('\r', ' ').Replace('\n', ' ');
Solution : Subject = subject.Replace('\r', ' ').Replace('\n', ' ');
Note: occurs with smtp related c# code
Comments