Export (0) Print
Expand All

Message.to property (JavaScript API for Office v1.1)

JavaScript API for Office v1.1

Gets or sets the recipients of an email message.

Last modified: June 12, 2014

Applicable Outlook modes

Compose or read

Available in requirement sets

Mailbox

Office.context.mailbox.item.to

Compose mode

A Recipients object that you can use to get and set the recipients of a message.

Read mode

A collection that contains an EmailAddressDetails object for each recipient listed on the To line of the message.

In read mode, the to field returns a collection that contains an EmailAddressDetails object for each recipient listed on the To line of the message. The collection is limited to a maximum of 100 members.

New functionality in version 1.1

In compose mode, the to field is a Recipients object that provides the getAsync and setAsync methods to get and set the list of recipients of the message. It also provides the addAsync method so that you can add additional recipients.

App types

Mail app

Supported clients

Outlook 2013, Outlook 2013 SP1, Outlook 2013 RT, Outlook Web App, and OWA for Devices

Library

Office.js

Namespace

Office

Show:
© 2014 Microsoft