Edit

Share via


Global.OfficeScript.MailProperties 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 properties of the email to be sent.

Properties

attachments

A file (such as a text file or Excel workbook) attached to a message. Optional.

bcc

The blind carbon copy (BCC) recipient or recipients of the email. Optional.

cc

The carbon copy (CC) recipient or recipients of the email. Optional.

content

The content of the email. Optional.

contentType

The type of the content in the email. Possible values are text or HTML. Optional.

importance

The importance of the email. The possible values are low, normal, and high. Default value is normal. Optional.

subject

The subject of the email. Optional.

to

The direct recipient or recipients of the email. Optional.

Property Details

attachments

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.

A file (such as a text file or Excel workbook) attached to a message. Optional.

attachments?: EmailAttachment | EmailAttachment[];

Property Value

bcc

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 blind carbon copy (BCC) recipient or recipients of the email. Optional.

bcc?: string | string[];

Property Value

string | string[]

cc

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 carbon copy (CC) recipient or recipients of the email. Optional.

cc?: string | string[];

Property Value

string | string[]

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 content of the email. Optional.

content?: string;

Property Value

string

contentType

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 type of the content in the email. Possible values are text or HTML. Optional.

contentType?: EmailContentType;

Property Value

importance

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 importance of the email. The possible values are low, normal, and high. Default value is normal. Optional.

importance?: EmailImportance;

Property Value

subject

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 subject of the email. Optional.

subject?: string;

Property Value

string

to

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 direct recipient or recipients of the email. Optional.

to?: string | string[];

Property Value

string | string[]