Transactional Emails ​

A transactional email is a single message your application sends to one specific address in response to something that recipient just did. Because it is addressed directly rather than through a subscriber list, it reaches anyone you name, and nothing about it depends on subscription state. This page covers creating one, calling it from your code, personalizing it, attaching files, and the statistics it reports.

You can find the transactional emails of a project under the Transactional Emails tab. The chips under each email's name show whether opens and clicks are tracked.

A screenshot of a project's transactional emails.

Creating a Transactional Email ​

To create a new transactional email, click the Create button.

A screenshot of a project's transactional emails - new button highlighted.

You'll be asked to choose one of four options:

  • Visual Editor: the drag-and-drop Chamaileon editor, with full access to your design system's blocks, components, and templates.
  • Raw HTML: write your own HTML directly.
  • Plain Text: a plain-text-only email, no HTML.
  • Copy & Paste: paste in a previously copied email design. This works no matter which editor the original email was built with.

A screenshot of the editor type selection step (Visual Editor, Raw HTML, Plain Text, Copy & Paste).

INFO

Design system templates and pre-designed templates are only available when starting with the Visual Editor. Emails built with Raw HTML or Plain Text also can't be saved back as a reusable design system template. Everything else, personalization, feeds, sending, and analytics, works the same regardless of which editor you pick.

TIP

If you use Copy & Paste to reuse content from a Chamaileon-built (Visual Editor) email inside a Raw HTML or Plain Text email, strip out any Chamaileon-specific merge tag or component markup first, it won't resolve there. Everything else should carry over as-is.

Visual Editor ​

If you didn't start from a copied design, choose a template to start from. The My templates tab lists your project's templates, and the Pre-designed tab lists the pre-designed templates. If your project doesn't have any templates of its own yet, the picker opens on the Pre-designed tab by default, as in the screenshot below. Select a template and click Next Step:

A screenshot of a project's transactional emails - create: template selection, with the Pre-designed tab open by default because the project has no templates of its own.

On the Email details step you see a preview of how the email will look in the inbox, and you set up the email on the right. You can change any of this later from the email card:

  • Content: the name, subject line, and preview text. You can personalize these with merge tags.
  • Tracking & options: the Track opens and Track clicks switches, both on by default, and the Feeds row with Add Feed.

A screenshot of a project's transactional emails - create: email details.

This step appears first if you choose to start from scratch.

When you're happy with the details, click Launch Editor.

A screenshot of a project's transactional emails - create: email details filled in with the Launch Editor button highlighted.

Finally, make changes in the drag-and-drop email editor:

A screenshot of a project's transactional emails - create: edit.

When you're done, click "Save & Close". You can make changes later as well.

Raw HTML / Plain Text ​

These two editors always start from scratch, there's no template selection step. You go straight to the Email details step: Content (name, subject line, and preview text) and Tracking & options (Track opens and Track clicks, both on by default, and the Feeds row with Add Feed). Transactional emails have no Audience section, because they are sent to one address at a time. The inbox preview on the left shows a placeholder with the editor type, because the editor opens after this step:

A screenshot of a project's transactional emails - create: email details for a Raw HTML email.

When you're happy with the details, click Launch Editor.

A screenshot of a project's transactional emails - create: email details with the Launch Editor button highlighted.

Finally, make changes in the editor:

  • Raw HTML:

    A screenshot of the Raw HTML editor toolbar and side panel.

  • Plain Text:

    A screenshot of the Plain Text editor toolbar and side panel.

The Raw HTML editor also has an Import button. Both editors give you Merge Tags, Preview (including Preview with data), Save, and Save & Close controls. Merge tags and feed variables are inserted via a side panel at your cursor position, rather than bound to a selected element like in the Visual Editor.

You can also add data feeds to Raw HTML and Plain Text emails the same way as any other transactional email, from the Feeds row on the transactional email card. The only difference is how you reference feed items inside the editor: through the merge tag side panel instead of a drag-and-drop Loop block.

When you're done, click "Save & Close". You can make changes later as well.

Send test email

It's a good idea to send a test email before you use a transactional email in your app. Click the Send Test Email icon (the envelope with a check mark) on the card. More on that in Sending Test Emails.

Transactional Email Integration ​

Every transactional email in bluefox.email has a unique URL for sending the email. Send an HTTP request to this endpoint. You can generate sample code in multiple programming languages by clicking the Code Snippet button on the card:

A screenshot of a transactional email card, with the code button highlighted.

Pick your language and click Copy Code to use it in your project. The checklist under the code lists the values you need to fill in before sending:

A screenshot of a transactional email's generated code, copy button highlighted.

Security Warning

Your bluefox.email API key is included in the request Authorization header. Never send these requests from your frontend!

To manage transactional emails and read their stats from code, see the Transactional Emails API reference. The send endpoint is documented in the Send Email API reference, and failed deliveries can be looked up with the Email Error Log API.

Transactional Email Personalization ​

You can personalize transactional emails with handlebars. The data you send to the transactional email's endpoint determines the available variables. For example, you can send a user's name:

javascript
await fetch(yourEndpoint, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer YOUR_API_KEY'
    },
    body: JSON.stringify({
        email: 'joe@doe.com',
        transactionalId: 'EMAIL_ID',
        data: {
            name: 'Joe Doe'
        }
    })
})

Visual Editor ​

You can use any handlebars variables in your email while editing. Click the wand icon (edit design) on the card:

A screenshot of a transactional email card, edit button highlighted.

Enter your variables with Handlebars syntax:

A screenshot of a transactional email being edited, a merge tag is being added.

You can also use merge tags in the email's subject line and preview text! Click Edit Settings on the card and use the Inbox Details tab. Here a merge tag is used in the subject:

A screenshot of a transactional email, with a merge tag being used in the subject.

Raw HTML / Plain Text ​

Merge tags work the same way, but since this isn't the Chamaileon editor, there's no click-to-bind-a-field flow. Instead, open the Merge Tags panel from the editor toolbar, place your cursor where you want the value to appear, and select the tag to insert it there. This works the same way in the subject line and preview text fields.

WARNING

If you're reusing content from a Chamaileon-built (Visual Editor) email inside a Raw HTML or Plain Text email, remove any Chamaileon-specific merge tag or component markup first, it won't resolve in the Raw HTML or Plain Text editor. Plain Handlebars merge tags (e.g. {{name}}) carry over fine either way.

For more details, read our guide on personalization with merge tags and Handlebars.

Open and Click Tracking ​

Transactional emails record opens and clicks by default. The transactional email card shows an Opens tracked and a Clicks tracked chip under its name, so you can see at a glance what's being recorded:

A screenshot of a transactional email card with the Opens tracked and Clicks tracked chips highlighted.

To change it, click either chip, or click Edit Settings and open the Tracking tab. There you can turn each one on or off for this email:

  • Track opens: adds an invisible pixel to the email. When it's off, opens aren't recorded for this email.
  • Track clicks: routes the links through the click tracker. When it's off, the links are sent as they are and clicks aren't recorded.

A screenshot of the Tracking tab in a transactional email's Edit Settings, with the Track opens and Track clicks switches highlighted.

Transactional Email Statistics ​

Transactional emails are crucial for sending automated, one-to-one messages triggered by user actions, such as account registrations, order confirmations, and password resets. Tracking the performance of these emails is essential to ensure their effectiveness and timely delivery.

Why Transactional Email Statistics Matter ​

Understanding how your transactional emails perform helps you:

  • Monitor Delivery Success: Track delivery rates, opens, clicks, and bounces to ensure your emails reach your users.
  • Optimize Engagement: By analyzing open rates and click-through rates, you can optimize your transactional email content and timing for better user engagement.
  • Identify Issues: High bounce rates or low open rates could indicate deliverability issues, content problems, or poor list management, allowing you to take corrective action.
  • Improve Customer Experience: Timely, well-performing transactional emails enhance the overall customer experience, increasing user satisfaction and retention.

What Transactional Email Statistics Include ​

The transactional email card shows a quick snapshot in a single row of stats: sent, unique open rate, unique clicks/unique opens, bounce rate, and complaint rate. Unlike campaign and triggered email cards, it has no unsubscribes stat. These numbers reflect the email's overall stats, not a specific time period.

Hover over the stat you want to look at to see the percentage and the counts behind it. Hover over the unique clicks/unique opens stat, for example, and a tooltip shows the unique clicks/unique opens percentage, clicks, unique clicks, and clicks per unique open:

A screenshot of a transactional email card with the tooltip shown when hovering over the unique clicks/unique opens stat.

For the other stats and what each tooltip shows, see Email Card Statistics.

The full transactional email statistics page covers the following key metrics:

  • Sent Emails: Total number of transactional emails sent.
  • Opens: Number of times the transactional emails were opened by recipients.
  • Unique Opens: Number of individual recipients who opened your transactional emails (counts only one open per recipient).
  • Clicks: Total number of clicks on links within the emails.
  • Unique Clicks: Number of individual recipients who clicked on links within your transactional emails (counts only one click per recipient).
  • Bounces: Number of emails that failed to be delivered.
  • Complaints: Number of complaints (e.g., marked as spam).

Opens and clicks are recorded only while open and click tracking is on for the email.

By analyzing these metrics, you can ensure that your transactional email system is functioning properly and making the desired impact on your users.

You can access the Transactional Email Statistics by clicking the arrow icon:

A screenshot of a transactional email card with the statistics arrow highlighted.

For a detailed guide on using the Transactional Email Statistics, refer to the Statistics Documentation.

Data Feeds ​

Data feeds allow you to automatically pull in live content from external sources directly into your transactional email. This is useful when your email needs to include up-to-date content (such as recommended articles, product highlights, or status info) without manually updating the template.

Feeds work the same way regardless of which editor you built the email with, Visual Editor, Raw HTML, or Plain Text.

TIP

For a full guide on using feeds inside the template (loops, merge tags, dynamic images, required behavior), see the Data Feeds documentation.

Supported feed types:

  • RSS / Atom XML
  • JSON

Adding a Feed ​

To add a feed, locate the Feeds row on your email card and click the + next to it. You can also open Edit Settings, go to the Feeds tab, and click Add Feed.

A screenshot of a transactional email card with the Feeds section and Add Feed button highlighted.

This will expand a form where you can configure your feed:

A screenshot of the Add Feed form expanded on a transactional email card.

Fill in the following fields:

  • Feed URL: The URL of the feed you want to pull content from.
  • Feed Type: Select the type of feed — RSS / Atom XML or JSON.
  • Variable Name: The name you'll use to reference this feed's data inside your email template using Handlebars syntax.

You can also check the Required checkbox if the feed must be available for the email to send.

Once you've filled in the details, click Preview to verify the feed is working correctly, then click Save Changes to store your configuration. Click Discard to drop your unsaved changes, or the trash icon next to a feed to delete it.

TIP

You can add multiple feeds to a single transactional email by clicking Add Feed again after saving the first one.

Editing Details of a Transactional Email ​

You can edit every key detail of the transactional email, such as its name, subject, preview text, from identity, and feeds, by clicking Edit Settings on the email card:

A screenshot of a transactional email card, edit settings button highlighted.

The settings open in three tabs: Inbox Details, Tracking, and Feeds. After you finish editing, click Save Changes to save your changes, or Discard to drop them.

A screenshot of a transactional email being edited, save changes button highlighted.

Advanced Settings ​

The Inbox Details tab in Edit Settings lets you customize key email-sending options, providing flexibility in managing sender identities and reply-to addresses. In the screenshot, the red box marks the settings tabs; this section covers the first one, Inbox Details.

Advanced Settings

Sender Identity Selection ​

The sender identity field lets you choose the identity used to send the email. By default, the system automatically selects the default identity, but you can select another identity from the list of available options.

Sender Identity Selection

Reply-To Email Address ​

The reply-to email address field allows you to specify where replies to your email should be sent.

Reply-To Email Field

Frequently Asked Questions

What are transactional emails in BlueFox Email?

Transactional emails are one-to-one emails sent in response to a specific user action, such as account registration, password resets, order confirmations, or purchase receipts. They are sent via the API directly to a specific email address and are not tied to any subscriber list.

Can subscribers unsubscribe from transactional emails?

No. Transactional emails cannot include an unsubscribe link and subscribers cannot opt out of them, because they are triggered by the recipient's own actions and are considered necessary communications. They are sent to any email address regardless of subscription status.

How are transactional emails different from triggered emails?

Transactional emails are sent to any email address via the API and are not tied to subscriber lists. Triggered emails are also API-sent but are tied to a subscriber list and will only be delivered to active subscribers on that list. Triggered emails require an unsubscribe link; transactional emails do not.

Can I send attachments with transactional emails?

Yes. Transactional emails sent via the API support file attachments encoded as Base64. Each attachment requires a file name and the Base64-encoded content included in the API request body.