Mailmessage spaces in subject
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Subject in a Mailmessage sent with SmtpClient.Send(Mailmessage) doesn't replace spaces with =20. If a space exists in the subject then it is treated as spam. A solution to this was to replace it my self like this mailMessage.Headers.Add("subject", subject.Replace(" ", "=20")); This worked great but now I have installed framework 2.0 service pack 1 and this removed the possibility to put the subject in the header. It won't show in the received email any more :( Does anyone have any idee on how to get correct spaces in a subject?