Skip to main content

sendFormMail

Presents the e-mail client in the corresponding platform 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: SendFormMail

Goal: Send an email using sendFormMail action

{
"type": "sendFormMail",
"params": {
"subject": "Meine Anfrage",
"body": "Bitte senden Sie mir einen Ausdruck von diesem Bild",
"to": "info@cewe.de"
}
}

Result:

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

Example 2: SendFormMail using Form Data

Goal: Send an email using sendFormMail action and replace 'name' with form data

{
"type": "sendFormMail",
"params": {
"subject": "Meine Anfrage",
"body": "Hallo `@@name@@` \n Bitte senden Sie mir einen Ausdruck von diesem Bild: ",
"to": "info@cewe.de",
"form": "formname"
}
}

Result:

A sendFormMail action that uses form data has been created.