This hit me today as I tried to move a configuration section to another configuration file. It seems that the SmtpClient class does not like non-english letters in email header.
What's really scary is that the code above actually works - the exception occured only when the subject name was read from the configuration file!
After an intense struggle, I've found the solution. Just add