Notifications
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
Parameters
subject
Subject in the email
message
Message displayed in the email
optional array
attachments An array of objects containing file meta data. This should include fileuuid
as a minimum.
Show child attributes
required string
fileuuid The globally unique identifier of the file in the Stubber platform.
required string
filename A descriptive name for the file
Example
See Attachments for related info
Result
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:
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.
You can attach the file as follows:
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.