The template library

Ready-made layouts for the mail every product sends: responsive HTML with plain-text twins and simple {{ variables }}. Import them into any server with one command, then edit in the dashboard.

Import the library

terminal
# clone the library into your mail server:
git clone https://github.com/camelmailer/camelmailer
cd camelmailer
./templates/import.sh https://mail.yourdomain.com $SERVER_API_KEY

# then send with any of them:
curl -X POST https://mail.yourdomain.com/api/v2/server/messages/with_template …

Each template ships as JSON (name, subject, html_body, text_body) in templates/library/ of the repository. The import script is ~20 lines of curl, so read it before you trust it.

All 20 templates

Hover a template for a live preview, click it to download the ready-to-import JSON, or open the full preview to see the whole email. Sample values are filled in so you see real mail, not placeholders.

Account lifecycle

welcome

welcome

Sent right after signup: greets the user and points at the first action.

email-verification

email-verification

Confirms the user owns the address; link + short expiry note.

magic-link

magic-link

Passwordless sign-in link.

account-deletion

account-deletion

Confirms a deletion request with a grace period.

Security

password-reset

password-reset

Reset link with expiry; safe to ignore if not requested.

password-changed

password-changed

Security notice after a successful password change.

two-factor-code

two-factor-code

One-time security code (login step-up, sensitive action).

new-device-login

new-device-login

Alert for a sign-in from a new device or location.

Collaboration

team-invitation

team-invitation

Invite to a team/workspace with inviter context.

mention-notification

mention-notification

Someone mentioned the user; quote + deep link.

comment-reply

comment-reply

New reply in a thread the user participates in.

Commerce

order-confirmation

order-confirmation

Order received; items table via {{#items}} section.

payment-receipt

payment-receipt

Payment succeeded; amounts, invoice number, download link.

payment-failed

payment-failed

Dunning: charge failed, retry date, update-payment CTA.

refund-processed

refund-processed

Refund issued; amount and arrival window.

subscription-renewal

subscription-renewal

Upcoming renewal notice with amount and date.

subscription-cancelled

subscription-cancelled

Cancellation confirmed; access end date; resubscribe link.

trial-ending

trial-ending

Trial expiry reminder with upgrade CTA.

shipping-notification

shipping-notification

Order shipped; carrier + tracking link.

Product

data-export-ready

data-export-ready

Requested export finished; expiring download link.

Variables and control flow are covered in template syntax; the endpoints (create, update, render-preview, archive) in the templates API.