andyedinborough / aenetmail

C# POP/IMAP Mail Client
370 stars 153 forks source link

Empty body caused an error because the content-type string was empty #132

Closed jvdvleuten closed 11 years ago

jvdvleuten commented 11 years ago

Fixed that ContentType of Text/Html view can be empty when no body has been sent with the e-mail message. When this happens, I now create an empty ContentType instead of putting the empty ContentType-string into the constructor. This caused an exception earlier.

Also added unit test.