Edit

Share via


Global.OfficeScript.EmailAttachment interface

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The attachment to send with the email. A value must be specified for at least one of the to, cc, or bcc parameters. If no recipient is specified, the following error is shown: "The message has no recipient. Please enter a value for at least one of the "to", "cc", or "bcc" parameters."

Properties

content

The contents of the file.

name

The text that is displayed below the icon representing the attachment. This string doesn't need to match the file name.

Property Details

content

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The contents of the file.

content: string;

Property Value

string

name

Note

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The text that is displayed below the icon representing the attachment. This string doesn't need to match the file name.

name: string;

Property Value

string