Skip to main content
Version: 4.62

sendFormMail

Opens the device's default e-mail app with predefined subject, body, and recipients addresses. form data of the current view can be used to construct the email body.

Field Configurations

KeyTypeDescriptionDefault Value
"params"Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"bcc"StringThe recipient of the blind carbon copy (bcc) of the email. In order to send to multiple recipients seperate the email addresses using , .null
"body"StringThe body of the email. @@ must be used as template delimeter, if the email body should construct using the data from the form .null
"cc"StringThe recipient of the carbon copy (cc) of the email. In order to send to multiple recipients seperate the email addresses using , .null
"form"StringIf the form Name is provided, then the form data and attachment is used to construct the email body.null
"subject"StringThe subject of the emailnull
"to"StringThe recipient of the email. In order to send to multiple recipients seperate the email addresses using , .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 e-mail using static data

Show ExampleHide Example

Goal: Send an email using the sendFormMail action

{
"type": "sendFormMail",
"params": {
"to": "kontakt@fabrik19.de",
"cc": "kontakt@distama.de",
"bcc": "kontakt@gleis82.de",
"subject": "This is a test mail",
"body": "I really like what you do!"
}
}
The app showing the results of the sample code from Example 1.The app showing the results of the sample code from Example 1.

Example 2: Send an e-mail using form data

Show ExampleHide Example

Goal: Replace 'name' with form data

{
"type": "sendFormMail",
"params": {
"to": "kontakt@fabrik19.de",
"cc": "kontakt@distama.de",
"bcc": "kontakt@gleis82.de",
"subject": "This is a test mail",
"body": "I really like what you do!\nBest regards `@@name@@`",
"form": "formName"
}
}