Edit

Share via


Office.MessageForm interface

Represents the details of the form for composing a new message.

Remarks

[ API set: Mailbox 1.6 ]

Minimum permission level: read item

Applicable Outlook mode: Read

Properties

attachments

Sets the attachments of the message. An attachment must be a file attachment (Office.MailboxEnums.AttachmentType.File) or an Outlook item attachment (Office.MailboxEnums.AttachmentType.Item).

bccRecipients

Sets the recipients in the Bcc field of the message.

ccRecipients

Sets the recipients in the Cc field of the message.

htmlBody

Sets the body of the message.

subject

Sets the subject of the message.

toRecipients

Sets the recipients in the To field of the message.

Property Details

attachments

Sets the attachments of the message. An attachment must be a file attachment (Office.MailboxEnums.AttachmentType.File) or an Outlook item attachment (Office.MailboxEnums.AttachmentType.Item).

attachments?: MessageFormAttachment[];

Property Value

Remarks

[ API set: Mailbox 1.6 ]

Minimum permission level: read item

Applicable Outlook mode: Read

bccRecipients

Sets the recipients in the Bcc field of the message.

bccRecipients?: string[] | EmailAddressDetails[];

Property Value

Remarks

[ API set: Mailbox 1.6 ]

Minimum permission level: read item

Applicable Outlook mode: Read

Important: The bccRecipients array is limited to a maximum of 100 recipients.

ccRecipients

Sets the recipients in the Cc field of the message.

ccRecipients?: string[] | EmailAddressDetails[];

Property Value

Remarks

[ API set: Mailbox 1.6 ]

Minimum permission level: read item

Applicable Outlook mode: Read

Important: The ccRecipients array is limited to a maximum of 100 recipients.

htmlBody

Sets the body of the message.

htmlBody?: string;

Property Value

string

Remarks

[ API set: Mailbox 1.6 ]

Minimum permission level: read item

Applicable Outlook mode: Read

Important: The body content is limited to a maximum size of 32 KB.

subject

Sets the subject of the message.

subject?: string;

Property Value

string

Remarks

[ API set: Mailbox 1.6 ]

Minimum permission level: read item

Applicable Outlook mode: Read

Important: The subject is limited to a maximum of 255 characters.

toRecipients

Sets the recipients in the To field of the message.

toRecipients?: string[] | EmailAddressDetails[];

Property Value

Remarks

[ API set: Mailbox 1.6 ]

Minimum permission level: read item

Applicable Outlook mode: Read

Important: The toRecipients array is limited to a maximum of 100 recipients.