wodImapServer ActiveX Component - Text Property
      
 

Description

Holds body (without headers).


Property type

A String value.  


Syntax

object.Text



The Text Property syntax has these parts:

Part Description
object An expression evaluating to an object of type ImapMessage.

Remarks
Text property holds actual message contents, without any additional data included, such as Headers or empty lines.

If the message has only one part then you will find here whatever sender of the message wrote.

If the message has more than one part (is called 'multipart') then usually you will find here text like this:

This is a multi-part message in MIME format.

This is text made for mail readers not capable of decoding multipart messages. In a case like this, loop through collection of Parts contained in your message, and try to find there text you're really interested in. Usually you will look where Parts(index).Headers("Content-type") is "text/plain" or "text/html" because this is type of text that sender actually wrote.