openBuild
  • Introduction
    • Introduction
    • The Framework
    • The Library
    • Release Notes
  • Core Concepts
    • Bubble vs openBuild
    • Responsive Design
      • Repeating groups
      • Advanced Responsiveness
    • Styles
      • Typography
      • Colors
      • Groups & Box Shadow
      • Inputs
      • Buttons
      • Style Variations
      • Changing styles
      • Custom CSS
    • Pages
      • index
      • base-menu
      • base-top
      • base-ribbon
      • base-mobile
      • admin
      • verify
      • styleguide
      • terms
      • login
      • reset_pw
      • privacy
      • 404
      • Menu
      • Base Layouts
  • WORKING WITH the framework
    • Getting Started
    • Navigation
      • Go to page
      • Navigation through custom states
      • Navigation through URL parameters
      • Navigation through URL parameters with Option sets
    • Data & Workflows
      • Custom States
      • Custom Events
      • Working with Reusables
      • CRUD
      • Source Popup
      • Backend Workflows
    • Users and Roles
    • Signup, Login, Password reset
    • Security & Privacy
      • Authenticating endpoints
    • Transactional Email
      • Setup Sendgrid
      • Setup Postmark
    • Alerts and Confirmations
    • Customization
    • Best Practices
      • Syntax
      • Color Coding
  • openBuild Library
    • Chrome Extension
  • Framework Elements
    • Menus
    • Option sets
    • Plugins
    • API Connector
    • User Access Management
    • CRUD Floating Group
    • CRUD Popup
    • Data Table
    • Security Redirect
    • Mail management
    • User Settings
    • Header & Footer
Powered by GitBook
On this page
  • Creating and using transactional email
  • 1. Set up your transactional email provider
  • 2. Create your email
  • 3. Test your email (optionally)
  • 4. Send your email from a workflow with variables
  • Anatomy of 📧 MAIL MANAGEMENT
  • Sending custom emails
  1. WORKING WITH the framework

Transactional Email

Send beautiful branded emails from your app 🤩

PreviousAuthenticating endpointsNextSetup Sendgrid

Last updated 2 years ago

openBuild allows you to create beautifully styled and versatile emails, managed through the Mail Management reusable and sent with Postmark or Sendgrid. You can put the 📧 MAIL MANAGEMENT reusable on any page. By default it is part of the Admin page.

By default openBuild comes with 4 default emails that you can change to your liking.

  • User email invite

  • Magic link login

  • Activation email

  • Reset password

Creating and using transactional email

There are 4 steps to creating and sending an email

1. Set up your transactional email provider

2. Create your email

Create your email with a name and all the fields you want to add.

Add dynamic content with the {{var}} notation. For adding a user’s first name you could use {{var1}}. For other dynamic data you use {{var2}} etc.

Use the Var list field in each email to make a note of which {{varX}} belongs to what dynamic data.

3. Test your email (optionally)

Instead of having to invoke the workflow that needs to send this email, you can test it in the Send Email tab. Note that it will not send dynamic data.

4. Send your email from a workflow with variables

Go to the workflow that should send the email and add the following action: Schedule API workflow.

Select Send email and enter all the data to send.

To select the right email, go to your mail management and find the email in the list.

Click the copy button to copy the ID.

In your action, for the email field, Do a Search for Emails with a constraint of unique ID is the copied UID of the email to send.

For dynamic content use the Var list and check the email var list to understand what dynamic data is var 1, var 2 etc.

Run the workflow to test if your email was sent successfully with the correct data.

Anatomy of 📧 MAIL MANAGEMENT

The 📧 MAIL MANAGEMENT module consists of:

Reusable

📧 MAIL MANAGEMENT - with all the screens and workflows to create and update transactional emails.

Data Types

Email - the Data type that stores your emails. It contains the actual escaped HTML used to send the email as well as all the other fields that (could) make up your email like headers, body, images etc.

Email Footer Link - when you want to create footer links for your emails (and select which ones you want to add to which emails) you create an Email Footer Link in the Mail Management module. It is stored in the database as this data type.

Email Template - all the HTML and escaped HTML required to display your emails as previews in the mail management module and required to assemble your own unique emails. You would not need to touch this unless you want to change your email template.

Workflows & Actions

📧Send Email API Workflow

Sendgrid - Send Email - for sending Sengrid emails

Postmark - Send Email - for sending Postmark emails

You can delete either the Postmark or Sendgrid action if you do not use them or add a condition to not run it (eg. 'When current date/time is empty'.)

Sending custom emails

You can send your own custom html emails as long as you escape the html.

  1. Create a new Email data type in the bubble editor.

  2. Give it at least a name and paste the escaped html in the html field

  3. If you want to use dynamic content, make sure to add your {{var1}}, {{var2}} etc. in your escaped HTML

  4. Use the email the same way as the other emails for sending.

openBuild supports and but you can use many others.

Escape your HTML (for example using )

Postmark
Sendgrid
https://www.freeformatter.com/json-escape.html
You can put the MAIL MANAGEMENT reusable anywhere you want in your app
Four default emails that you can edit, clone or delete
Create your email in the email builder and see a live preview.
Test your email with a sender address you validated with your email provider.
Create a workflow to send your email
Simply schedule the API Workflow 'Send Email' with the parameters you need to send your email.