wodMailbox ActiveX Control - DecodedText Property
      
 

Description

Holds decoded body (without headers), with defined encoding type.


Property type

A String value.  


Syntax

object.DecodedText(EncodedAs)



The DecodedText Property syntax has these parts:

Part Description
object An expression evaluating to an object of type Message.
EncodedAs Required. An AttachmentEncodingsEnum enumeration, as described in settings.

Specifies type of decoding to use.


Settings

The settings for EncodedAs are:

Constant Value Description
 encUNKNOWN 0 unknown
 encBASE64 1 BASE64 encoding
 encBINHEX4 2 BINHEX4
 encUUENCODE 3 UUENCODE
 encQUOTEDPRINTABLE 4 quoted-printable
 enc7BIT 5 7bit

Remarks

This property will return string expression that contains decoded Message.Text property, using decoding type you specify. It is very useful when message contains subparts, and they are encoded using QuotedPrintable encoding. In these cases, it is very easy to show message contents with this property.

You have to determine by yourself which encoding type is used, usually from Message.Headers("Content-transfer-encoding"). Since wodMailbox did not move this also to Attachments collection, most probably subpart is missing relevant information about attached file (such as filename).

NOTE: DecodedText property uses temporary file in temporary folder. There can be problem in ASP environments, where temporary folder is for IUSR_NAME account is reported as 'C:\Documents and settings\Default User\'. If you use this property in such environment, you must allow IUSR_NAME to access and write to this directory.