To create a callback email function you need to create a model in your data model with an Email message property. This is the email object. Different actions can be triggered by this property.

Note: We are constantly updating the Betty Blocks platform to increase the ease-of-use of our platform. Certain functionality is currently still managed in our previous IDE but works seamlessly with our updated environment. This article explains functionality that is managed in our previous environment.

You can also refer to the Product changes for a list of updates to the platform

Creating an action connected to the email message property

Create an action connected to the model created - this example uses only the Send mail event. You also need to create a 'storage' property for storing mail related information. This is also required for creating trigger callback actions. The Storage property is an additional property that refers to the email message property already created. 

You can have actions based on different triggers. The triggers selected also need to be enabled in the mail server.

Note: If you use the default Betty Blocks mail server, you can ask our support team to set up the triggers you need.

Select actions for triggers

Edit the email message property in the model created and select an action for each Mandrill trigger that can be selected.

Click on the model (A) in the list of models. In the model details, select Properties (B) to open the property details for the model. Click on the New (C) button to create a new property. Select the Email message (D) from the Type menu displayed. The fields associated with this type are displayed.

Note: Actions can only be triggered where the correct trigger is selected in the email components, in this example, Mandrill. If the open event action trigger is not enabled, the action is not triggered.

As shown below, the start mail action begins the process. Additional Bounce mail events are also included. Where the communication over the configured email system fails, a bounce mail event action (C) is triggered.

In the following log example details, an action (bounce mail) is triggered.

Where a user does not have access to the log details, a bounce notification email can be configured to a different mail address.

Did this answer your question?