Office.EmailUser interface
表示 Exchange Server 上的电子邮件帐户。
注解
最低权限级别: 读取项
示例
// 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 |
获取与电子邮件地址关联的显示名称。 |
email |
获取 SMTP 电子邮件地址。 |
属性详细信息
displayName
获取与电子邮件地址关联的显示名称。
displayName: string;
属性值
string
emailAddress
获取 SMTP 电子邮件地址。
emailAddress: string;
属性值
string