1. Notifications
  2. Email

Notifications

Email

How to send email notifications.

Email notifications are standard emails sent from stubber system domain @stubber.email

Setup

  • no setup required

Create send action

  • Setup a notification in an action as seen below
loading...

Parameters

subject

required
string

Subject in the email


message

required
string

Message displayed in the email


attachments

optional
array

An array of objects containing file meta data. This should include fileuuid as a minimum.

loading...
INFO

See Attachments for related info


Result

image

Examples

In all these examples, standard substitution techniques to pull in values from stub or stubpost data can be deployed.

Attach Single File (full JSON Structure)

When attaching a file building out the full JSON Structure:

loading...

Attaching using File structure

When attaching a file / files using the existing files JSON structure from stub.data
Consider data structure of a file field in the stub.

loading...

You can attach the file as follows:

loading...

This works as the substitution brings in the entire array at the path of ~~stub.data.files resulting in the same JSON structure.

If the ~~stub.data.files array contains multiple object referring to multiple files, each file will be attached.