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": "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.");
});
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Office Add-ins