Edit

Share via


OfficeScript.MailProperties interface

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

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

attachments?: EmailAttachment | EmailAttachment[];

Property Value

bcc

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

bcc?: string | string[];

Property Value

string | string[]

cc

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

cc?: string | string[];

Property Value

string | string[]

content

The content of the email. Optional.

content?: string;

Property Value

string

contentType

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

contentType?: EmailContentType;

Property Value

importance

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

importance?: EmailImportance;

Property Value

subject

The subject of the email. Optional.

subject?: string;

Property Value

string

to

The direct recipient or recipients of the email. Optional.

to?: string | string[];

Property Value

string | string[]