Send Email with Bun
This guide shows you how to send transactional emails using Sequenzy in a Bun application.Prerequisites
- A Sequenzy account with an API key
- A verified sending domain
- Bun installed
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: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:email-template.tsx