Question:
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.
Android: Get Contents of a T-Mobile Text Message (as Email)
Classic ASP: Get Contents of a T-Mobile Text Message (as Email)
C: Get Contents of a T-Mobile Text Message (as Email)
C++: Get Contents of a T-Mobile Text Message (as Email)
C#: Get Contents of a T-Mobile Text Message (as Email)
C# UWP/WinRT: Get Contents of a T-Mobile Text Message (as Email)
DataFlex: Get Contents of a T-Mobile Text Message (as Email)
Delphi ActiveX: Get Contents of a T-Mobile Text Message (as Email)
Delphi DLL: Get Contents of a T-Mobile Text Message (as Email)
.NET Core C#: Get Contents of a T-Mobile Text Message (as Email)
Excel: Get Contents of a T-Mobile Text Message (as Email)
Visual FoxPro: Get Contents of a T-Mobile Text Message (as Email)
Java: Get Contents of a T-Mobile Text Message (as Email)
Lianja: Get Contents of a T-Mobile Text Message (as Email)
MFC: Get Contents of a T-Mobile Text Message (as Email)
Mono C#: Get Contents of a T-Mobile Text Message (as Email)
Node.js: Get Contents of a T-Mobile Text Message (as Email)
Objective-C: Get Contents of a T-Mobile Text Message (as Email)
Perl: Get Contents of a T-Mobile Text Message (as Email)
PHP ActiveX: Get Contents of a T-Mobile Text Message (as Email)
PHP Extension: Get Contents of a T-Mobile Text Message (as Email)
PowerBuilder: Get Contents of a T-Mobile Text Message (as Email)
PowerShell: Get Contents of a T-Mobile Text Message (as Email)
PureBasic: Get Contents of a T-Mobile Text Message (as Email)
Python: Get Contents of a T-Mobile Text Message (as Email)
Ruby: Get Contents of a T-Mobile Text Message (as Email)
SQL Server: Get Contents of a T-Mobile Text Message (as Email)
Swift: Get Contents of a T-Mobile Text Message (as Email)
Tcl: Get Contents of a T-Mobile Text Message (as Email)
Unicode C: Get Contents of a T-Mobile Text Message (as Email)
Unicode C++: Get Contents of a T-Mobile Text Message (as Email)
Visual Basic 6.0: Get Contents of a T-Mobile Text Message (as Email)
VB.NET: Get Contents of a T-Mobile Text Message (as Email)
VB.NET UWP/WinRT: Get Contents of a T-Mobile Text Message (as Email)
VBScript: Get Contents of a T-Mobile Text Message (as Email)
Xojo Plugin: Get Contents of a T-Mobile Text Message (as Email)