Create new instance.
Optional
identifier: stringArray of email addresses to use as BCC:
recipients. Each entry can be a valid email address, or a name and email in the format Name<email>
.
Body text of the mail message. Can be plain text or HTML if the isBodyHTML
property is set to true
.
Array of email addresses to use as CC:
recipients. Each entry can be a valid email address, or a name and email in the format Name<email>
.
whether to treat the body string and plain text or HTML. When set to true
, the body
property should be set to full valid HTML.
Array of email addresses to use as To:
recipients. Each entry can be a valid email address, or a name and email in the format Name<email>
.
Static
createcreate a new object.
Optional
identifier: stringnotes which for Outlook account to use. This string is an arbitrary value, but we recommend using the email address you wish to associate with the script. Each unique identifier will be associated with its own Credential.
The OutlookMessage object can be used to create and send mail messages through Outlook.com integrated accounts, similar to those created by a Outlook action step. Creating and sending these messages happens in the background, with no user interface, so messages must be complete with recipients before calling
send()
. Sending is done via the Microsoft Graph API. Outlooks accounts are authenticated when used for the first time using OAuth - to use more than one account, call create with different identifier parameters.Example