Adding an Email Destination
Adding an Email Action
- Add a new step to your workflow
- Select the Send Yourself an Email Action. You can modify the Subject and the message (either Plain Text or HTML) however you want.
Using $.send.email
in workflows
You can send data to an Email Destination in Node.js code steps, too, using the $.send.email()
function. This allows you to send emails to yourself programmatically, if you need more control than actions provide.
$.send.email()
takes the same parameters as the corresponding action:
html
property is optional. If you include both the text
and html
properties, email clients that support HTML will prefer that over the plaintext version.
Like with any $.send
function, you can use $.send.email()
conditionally, within a loop, or anywhere you’d use a function normally in Node.js.
Using $.send.email
in component actions
If you’re authoring a component action, you can deliver data to an email destination using $.send.email
.
$.send.email
functions the same as $.send.email
in workflow code steps: