Office.MessageForm interface

表示用于撰写新邮件的表单的详细信息。

属性

attachments

设置邮件的附件。 附件必须是) (Office.MailboxEnums.AttachmentType.File 文件附件或) (Office.MailboxEnums.AttachmentType.Item Outlook 项目附件。

bccRecipients

在邮件的密件抄送字段中设置收件人。

ccRecipients

在邮件的抄送字段中设置收件人。

htmlBody

设置消息的正文。

subject

设置消息的主题。

toRecipients

在邮件的“收件人”字段中设置收件人。

属性详细信息

attachments

设置邮件的附件。 附件必须是) (Office.MailboxEnums.AttachmentType.File 文件附件或) (Office.MailboxEnums.AttachmentType.Item Outlook 项目附件。

attachments?: MessageFormAttachment[];

属性值

注解

API 集:邮箱 1.6

最低权限级别读取项目

适用的 Outlook 模式:读取

bccRecipients

在邮件的密件抄送字段中设置收件人。

bccRecipients?: string[] | EmailAddressDetails[];

属性值

注解

API 集:邮箱 1.6

最低权限级别读取项目

适用的 Outlook 模式:读取

重要提示bccRecipients 数组限制为最多 100 个收件人。

ccRecipients

在邮件的抄送字段中设置收件人。

ccRecipients?: string[] | EmailAddressDetails[];

属性值

注解

API 集:邮箱 1.6

最低权限级别读取项目

适用的 Outlook 模式:读取

重要提示ccRecipients 数组限制为最多 100 个收件人。

htmlBody

设置消息的正文。

htmlBody?: string;

属性值

string

注解

API 集:邮箱 1.6

最低权限级别读取项目

适用的 Outlook 模式:读取

重要提示:正文内容的最大大小限制为 32 KB。

subject

设置消息的主题。

subject?: string;

属性值

string

注解

API 集:邮箱 1.6

最低权限级别读取项目

适用的 Outlook 模式:读取

重要提示:主题限制为 255 个字符。

toRecipients

在邮件的“收件人”字段中设置收件人。

toRecipients?: string[] | EmailAddressDetails[];

属性值

注解

API 集:邮箱 1.6

最低权限级别读取项目

适用的 Outlook 模式:读取

重要提示toRecipients 数组限制为最多 100 个收件人。