Office.EmailUser interface
Represents an email account on an Exchange Server.
Remarks
Minimum permission level: read item
Applicable Outlook mode: Read
Examples
// Add recipients to the To field of an email.
const recipients: Office.EmailUser[] = [
{
"displayName": "Allie Bellew",
"emailAddress": "[email protected]"
},
{
"displayName": "Alex Darrow",
"emailAddress": "[email protected]"
}
];
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.");
});
Properties
display |
Gets the display name associated with an email address. |
email |
Gets the SMTP email address. |
Property Details
displayName
Gets the display name associated with an email address.
displayName: string;
Property Value
string
emailAddress
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