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 inpackages/emails/src/templates/:
| Template | File | When It’s Sent |
|---|---|---|
| Welcome | welcome.tsx | After a new user registers |
| Verify Email | verify-email.tsx | When email verification is required |
| Reset Password | reset-password.tsx | When a user requests a password reset |
| Password Changed | password-changed.tsx | After a successful password change |
| Login Alert | login-alert.tsx | When a login from a new device is detected |
| Team Invite | team-invite.tsx | When a user is invited to an organization |
| Invoice | invoice.tsx | After a successful payment |
| Payment Failed | payment-failed.tsx | When a payment fails |
| Subscription Canceled | subscription-canceled.tsx | When a subscription is canceled |
| Trial Ending | trial-ending.tsx | Before a trial period expires |
| Newsletter | newsletter.tsx | For newsletter campaigns |
| Product Update | product-update.tsx | For product announcement emails |
packages/emails/src/components/Layout.tsx that provides consistent header, footer, and styling.
Previewing Templates
React Email has a built-in preview server:/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:<Heading>, <Text>, <Button>, <Section>, etc.) for cross-client email compatibility.
Changing Branding
The shared layout inpackages/emails/src/components/Layout.tsx controls:
- Logo image
- Header background color
- Footer text and links
- Font choices
Configuring the Email Provider
BunShip Pro supports three email providers, configured viaEMAIL_PROVIDER in .env:
| Provider | Value | Notes |
|---|---|---|
| Resend | resend | Default. Set RESEND_API_KEY. |
| SMTP | smtp | Works with Gmail, SendGrid, Mailgun, Postmark, or any SMTP server. |
| Console | console | Logs emails to the terminal. Used when no API key is set. |
Resend Setup
SMTP Setup
Adding New Templates
- Create a new file in
packages/emails/src/templates/:
- Add the template to the API’s email service to trigger sending from your backend logic
- The template will automatically appear in the React Email preview server
Next Steps
- Theming & Branding — Change the app’s colors and fonts to match your email branding
- Configuration — Full environment variable reference

