Office.EmailUser interface
Представляет учетную запись электронной почты на сервере Exchange Server.
Комментарии
Минимальный уровень разрешений: чтение элемента
Применимый режим Outlook: чтение
Примеры
// 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.");
});
Свойства
| display |
Получает отображаемое имя, связанное с адресом электронной почты. |
| email |
Получает адрес электронной почты SMTP. |
Сведения о свойстве
displayName
Получает отображаемое имя, связанное с адресом электронной почты.
displayName: string;
Значение свойства
string
emailAddress
Получает адрес электронной почты SMTP.
emailAddress: string;
Значение свойства
string