Skip to main content

Email

Overview

Send emails directly from an API step in an application, workflow or scheduled job. Emails are sent from Superblocks without having to set up a third-party email delivery tool.

  1. Create a workflow to automatically process a refund request, using the email integration to send a confirmation email to the customer

  2. The customer receives an email from app@superblocksmail.com notifying them that the refund was processed successfully

Creating email steps

To add an Email step to an API, choose "email" as a new API step. Add the recipients email(s) in the To, Cc, and Bcc fields, along with the Subject. The Body field accepts both plain text and HTML.

You can optionally attach a list of files to send with the email by using the File Attachments Object Array with the format: [{name: <name_of_first_file>}, contents: <contents_to_attach>, type: <file_type>}]. Here's an example showing an API that queries a database, generates a CSV file based on the query results, and then attaches the CSV file to an email: