Office.EmailUser interface
Represents an email account on an Exchange Server.
Minimum permission level: read item
Applicable Outlook mode: Read
// Add recipients to the To field of an email.
const recipients: Office.EmailUser[] = [
{
"displayName": "Allie Bellew",
"emailAddress": "allieb@contoso.com"
},
{
"displayName": "Alex Darrow",
"emailAddress": "alexd@contoso.com"
}
];
Office.context.mailbox.item.to.addAsync(recipients, (result) => {
if (result.status === Office.AsyncResultStatus.Failed) {
console.log(result.error.message);
return;
}
console.log("Recipients added to the To field.");
});
display |
Gets the display name associated with an email address. |
email |
Gets the SMTP email address. |
Gets the display name associated with an email address.
displayName: string;
Property Value
string
Gets the SMTP email address.
emailAddress: string;
Property Value
string
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins feedback
Office Add-ins is an open source project. Select a link to provide feedback: