All templates
Event invite postcard template
An invitation that lands three weeks out, with the event and the date big enough to go on the fridge.
Mailr prints
On every piece, in our layout. You send the data, not the design.
- The recipient’s name and address from
to, in our font, inside the address block at the bottom right of the back. - Your return address from
from(required), at the top of the address block. - Postage and the USPS Intelligent Mail barcode, inside the address block.
You can add
In your own style, outside the keep-clear zones.
- Your logo, colors, fonts and images anywhere outside the address block (PNG or JPG at 300 DPI; fonts as TTF, WOFF, WOFF2 or Google Fonts; all on public https URLs).
- Your own business address, phone or website in your own style. On the back keep it outside the address block; on the front keep it above the bottom 2.375 in, or use light text on a dark background.
- Personal touches from merge fields: first name, offer codes, product names, links. Any {{tag}} you add is filled from merge.
- A QR code at least 1 in wide, inside the safe area and outside the address block.
Don’t add
USPS can reject it, or it gets covered.
- Stamps, permit imprints, “postage paid” or “nonprofit org.” marks, or anything that looks like them. Mailr prints the right indicia for the mail class.
- Barcodes that look like USPS barcodes.
- The recipient’s address anywhere else on the card.
- Sensitive personal data: account numbers, amounts, health or money details. It mails without an envelope, so anyone handling the card can read it.
- Crop marks or printer marks.
- Anything inside the address block. A white box is printed over it.
Design files
Print-ready HTML your agent can fetch, copy into your repo and edit. Keep the page size, the safe area and the keep-clear zones.
Agent prompt
Paste it into Claude Code, Cursor or Codex. It points your agent at the files above.
Add the Mailr "Event invite" postcard to this app.
Measurements (inches; the HTML is laid out at 96 px per inch):
- Trim 8.5 × 5.5 in. Each page with bleed is 8.75 × 5.75 in (840 × 552 px). Bleed 0.125 in on every side.
- Safe area: keep text and logos 0.125 in inside the trim (0.25 in from the page edge).
- Keep clear on the back: 4 × 2.375 in at 4.35 in from the left and 3 in from the top of the trim. Mailr prints the addresses, postage and barcode there.
- Text 8pt or larger. Images at 300 dpi for their printed size.
- Merge field limits: first_name 14, event_name 28, event_date 24 characters.
1. Read the spec first: https://mailr.dev/templates/tmpl_event_invite/template.json
It has the trim size, bleed, safe area, the keep-clear zone and a max_length for every merge field.
2. Design files (print-ready HTML at true size, with {{merge}} tags):
https://mailr.dev/templates/tmpl_event_invite/front.html
https://mailr.dev/templates/tmpl_event_invite/back.html
To use the design as-is, send template: "tmpl_event_invite".
To change it, save both files in this repo (mail/tmpl_event_invite/), edit them, keep the page size, bleed, safe area,
keep-clear zone and merge tags, and send the HTML as front and back instead of template.
Follow "content" in the spec: Mailr prints the recipient address, return address (from), postage and barcode,
so never draw those in the design. Logos, fonts, images, QR codes and your own contact details are fine.
3. Trigger: when the event is 3 weeks away (Eventbrite event.published).
4. Call POST https://api.mailr.dev/v1/postcards with size: "5.5x8.5", to: the customer's mailing address,
from: this business's return address (required; set it once in config),
and merge: { first_name, event_name, event_date } from the customer record. Check each value against max_length before sending.
5. Auth: Authorization: Bearer <MAILR_API_KEY>, read from the MAILR_API_KEY environment variable.
6. Save the returned id on the customer so the same person is never mailed twice for the same event.
7. Check delivery with GET https://api.mailr.dev/v1/postcards/{id} (status and events; webhooks are not available yet).
API reference for agents: https://mailr.dev/llms.txtPrint spec
- Trim size
- 8.5 × 5.5 in, landscape
- Bleed
- 0.125 in on every side (page 8.75 × 5.75 in)
- Safe area
- 0.125 in inside the trim
- Keep clear
- 4 × 2.375 in address block on the back, 0.15 in from the right edge and 0.125 in from the bottom
- Mails as
- Postcard: card price on First-Class, letter rate on Marketing Mail
- Paper
- 100 lb silk cover, full color on both sides
- Fonts
- Inter (Google Fonts)
- Endpoint
- POST /v1/postcards
Mailing a batch of these? See prices with postage included.
Merge fields
| Tag | Max | Example |
|---|---|---|
{{first_name}} | 14 | Lena |
{{event_name}} | 28 | Trail Film Night |
{{event_date}} | 24 | Saturday, December 12 |
START SENDING
Put your first postcard in the mail
Create a key, send a test to yourself, and check the proof before anything prints.
- Postcards, flats and folded mailers
- A proof before anything prints
- Free test mode: nothing prints, nothing charges
- A status for every piece