When I receive an email which originated as a T-Mobile SMS text,
there are 4 attachments.
1 .txt file
3 .gif image files.
I have looked through many examples but can find anything that allow me to save the .txt file and ignore the image files. HasPlainTextBody() and HasHtmlBody() both return false.
What example should I look at that could allow me to save one of the attachments ?
This example shows what to do (see links below)
The MIME structure of the T-Mobile SMS text message is as follows:
multipart/related text/html text/plain image/gif image/gif image/gif
The email should have an HTML part, and 4 related parts.
The HTML part is not considered a "related item" because the related items are defined as being related to the HTML part. Therefore, we should always expect to find a text/html part under a multipart/related. The HTML parts is simply the HTML body, and the other parts are the related items. If the text/plain part was to be considered as an alternative body, then a properly structured email would include a multipart/alternative structure.