The MailFormat property sets the encoding for the NewMail object. Write-only.
objNewMail.MailFormat
Long
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.