Skip to main content

Email Templates

BunShip Pro includes 13 pre-built email templates using React Email. They’re fully styled, responsive, and ready to customize.

Included Templates

All templates live in packages/emails/src/templates/: All templates use a shared layout component at packages/emails/src/components/Layout.tsx that provides consistent header, footer, and styling.

Previewing Templates

React Email has a built-in preview server:
This opens a browser where you can see every template rendered with sample data. You can also preview templates from the admin panel at /admin/email-templates.

Editing Templates

Each template is a React component. Open the file and change the text, colors, or layout. For example, to update the welcome email subject line and body:
Templates use React Email components (<Heading>, <Text>, <Button>, <Section>, etc.) for cross-client email compatibility.

Changing Branding

The shared layout in packages/emails/src/components/Layout.tsx controls:
  • Logo image
  • Header background color
  • Footer text and links
  • Font choices
Edit this file to change the branding across all emails at once.

Configuring the Email Provider

BunShip Pro supports three email providers, configured via EMAIL_PROVIDER in .env:

Resend Setup

SMTP Setup

Adding New Templates

  1. Create a new file in packages/emails/src/templates/:
  1. Add the template to the API’s email service to trigger sending from your backend logic
  2. The template will automatically appear in the React Email preview server

Next Steps