Configure transactional emails for GudCal.
GudCal uses Resend for transactional emails including booking confirmations, cancellations, reschedule notifications, reminders, password resets, and magic link login.
Environment Variables
RESEND_API_KEY="re_your_resend_api_key"Setup
Create a Resend account
Sign up at resend.com/signup if you don't have an account.
Create an API key
In your Resend dashboard, go to API Keys and create a new key. Copy it into your .env.local file.
Configure sender domain (production)
For production, add and verify your domain in Resend so emails come from your own address (e.g. notifications@yourdomain.com).
Set EMAIL_FROM to that verified mailbox. Booking guest mail uses
HostName via GudCal <mailbox> so Gmail shows the host name and the ICS
ORGANIZER mailbox matches From. The hosted default is
GudCal <bookings@mailman.gudcal.com>.
Confirmed guest mail attaches a METHOD:REQUEST ICS. Cancel of a confirmed
booking attaches METHOD:CANCEL. Pending bookings do not get an ICS, including
pending cancel (there was never a prior REQUEST).
Reschedule of a confirmed booking sends two guest emails: CANCEL for the old
UID, then REQUEST for the new UID. Some calendar clients ignore CANCEL
when both files share one message.
ICS attachments use a Base64 content string plus contentType, the shape
Resend's JSON API documents. A Node Buffer is not that shape.
Email Templates
GudCal includes six branded email templates built with React Email:
| Template | Trigger |
|---|---|
| Booking Confirmation | New booking created |
| Booking Cancellation | Booking cancelled (by host or guest) |
| Booking Rescheduled | Booking moved to a new time |
| Booking Reminder | 24 hours before the meeting to the guest and host; also 1 hour and 5 minutes before on paid plans (via cron) |
| Password Reset | User requests password reset |
| Magic Link | Passwordless login |
All templates use a shared layout with the GudCal emerald brand colors, logo, and footer.
Additional Guests
When a booking includes additional guests, they are automatically CC'd on all guest-facing emails (confirmation, cancellation, rescheduled, and reminder).
Cron Reminders
Reminders go to the guest (with additional guests CC'd) and to the host, in each person's own timezone:
- 24 hours before, on every plan.
- 1 hour and 5 minutes before, on Pro and Team (always on when self-hosted).
A reminder is skipped if the booking was made after it was due. Set up a cron job that calls the endpoint every minute (the 5-minute reminder needs it):
GET /api/cron/reminders
Authorization: Bearer YOUR_CRON_SECRETSet CRON_SECRET in your environment variables. On Vercel, vercel.json already schedules it and Vercel sends the secret automatically (per-minute cron needs a Pro plan). cron-job.org or a system crontab also work.
