Skip to main content

Send Email with Bun

This guide shows you how to send transactional emails using Sequenzy in a Bun application.

Prerequisites

1. Install

Install the Sequenzy SDK:

2. Create an Email Template

Create a React Email component for your email template:
email-template.tsx
You can use React Email components to build beautiful, responsive email templates. See our React Email guide below for more details.

3. Send the Email

Create your Bun server and send an email:
index.tsx

4. Run

Start your server:
Visit http://localhost:3000 to trigger the email.

Using Templates

Instead of rendering HTML directly, you can use pre-built templates from the Sequenzy dashboard:

Using React Email

React Email provides a set of components for building responsive emails. Install it alongside Sequenzy:
Create a more sophisticated template:
email-template.tsx
Then render and send:

Next Steps

React Email Components

Explore all available React Email components

Transactional Emails

Learn more about transactional emails