Skip to main content

mailTo

Sends an email and opens the device's email programm for this purpose.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"bcc"StringEmail address for a blind copy.null
"cc"StringEmail adress for a copy.null
"content" (required)StringContent of the email.null
"subject"StringSubject of the email.null
"to" (required)StringEmail address of the receiver.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Send an email

Goal: Create a mailTo action sending an email with cc and bcc.

The to, cc and bcc parameters contain the corresponding email adresses.

{
"type": "mailTo",
"params": {
"to": "test@fabrik19.de",
"cc": "copy@fabrik19.de",
"bcc": "bcc@fabrik19.de",
"subject": "This is a test mail",
"content": "<h1>This is a test mail</h1>With some content."
}
}

The subject and content parameters specify the subject and content of the email respectively.

Result:

Screencapture of the app showing the results of the sample code from Example 1.
A mailTo action has been created.