Installation
Set up your API key
Get your Server API token from Postmark and add it to your environment variables:
Usage
Create an email component
emails/email.tsx
Send the email
index.tsx
Advanced features
Multiple recipients
CC and BCC
Plain text version
Tags and metadata
Postmark allows you to add tags and metadata for tracking:Track opens and links
Attachments
Error handling
Important notes
- Postmark uses capitalized field names (e.g.,
From,To,Subject) - You need to verify your sender signature or domain before sending
- Postmark focuses on transactional emails, not marketing emails