CreateMailPage method

Creates a Mail Page object.

Syntax


C++
HRESULT CreateMailPage (
   BSTR Subject,
   BSTR Body,
   ERUTextFormat BodyFormat,
   BSTR SenderAddress,
   LONG CreateOptions,
   IERUItem** ppMailPage)
Scripting languages
Set MailPage = Object.CreateMailPage (
   Subject as String,
   Body as String,
   BodyFormat as ERUTextFormat,
   SenderAddress as String,
   CreateOptions as Long)

Parameters


Subject

The Subject of the mail page. The name has to be unique in the container.

Body

The Body of the mail page.

BodyFormat

Indicates whether the Body parameter is in HTML or plain text format.

For further information, see ERUTextFormat.

SenderAddress

The email address of the person who sent the message, in the following format: "firstname lastname<emailaddress>".

CreateOptions

One or more values from the ERUCreateOptions enumeration, logically OR'ed together [optional, default = erCreateOptNone].

ppMailPage

Upon return, an IERUItem interface pointer to the newly-added Mail Page.

Return value


C++

The return code.

Scripting languages

An IERUItem interface pointer to the newly-added Mail Page.

Remarks


Mail Pages can be created in a variety of container objects, not just Inbox Pages. The Subject of the Mail Page can be no longer than 126 characters.

Home

Interface

IERUContainer


See also

Creating Items