Platform SDK: CDO 1.2.1

MailFormat Property (CDONTS NewMail Object)

The MailFormat property sets the encoding for the NewMail object. Write-only.

Syntax

objNewMail.MailFormat 
 

Data Type

Long

Remarks

MailFormat can contain exactly one of the following values:

MailFormat setting Value Description
CdoMailFormatMime 0 The NewMail object is to be in MIME format.
CdoMailFormatText 1 The NewMail object is to be in uninterrupted plain text (default value).

The setting of the MailFormat property determines the default value for the EncodingMethod parameter in the AttachFile and AttachURL methods. However, if you add an attachment encoded in base 64 format, the value of the MailFormat property is automatically set to CdoMailFormatMime.

For more information on Multipurpose Internet Mail Extensions (MIME), see the RFC 1341 document.