login about faq

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 ?

asked Sep 25 at 17:25

chilkat's gravatar image

chilkat ♦♦
11.8k316358421


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)

link

answered Sep 25 at 17:27

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×184
×3
×1

Asked: Sep 25 at 17:25

Seen: 133 times

Last updated: Sep 25 at 17:27

powered by OSQA