Schedule email from your app, your terminal, or your AI agent.
Mailclock is an open-source email scheduler. It queues in Postgres, sends through your own SMTP or Resend account, and shows you what went out, what's waiting, and what failed.
MIT licensed. Postgres is the only thing you need to run it.
Remind Ada that her plan renews. Send it Monday at 9am.
Called schedule_email on Mailclock
{
"to": "ada@example.com",
"subject": "Your plan renews on Dec 1",
"text": "Hi Ada, your plan renews on Dec 1.",
"sendAt": "2026-11-30T09:00:00+05:30",
"tags": ["billing"]
}Done. It's scheduled for Monday 9:00, and you can see it in your Mailclock dashboard.
One queue, three ways in
REST API
One POST to schedule, with idempotency keys so retries never double-send. Cancel or move an email until the moment it goes.
POST /api/v1/emails
{ "to": "ada@example.com",
"subject": "Welcome",
"text": "Thanks for signing up.",
"sendAt": "2026-12-01T09:00:00Z" }MCP
Claude, Cursor, and other agents can schedule, reschedule, cancel, and check on emails. Per-key daily limits and rate limits keep them in bounds.
"mailclock": {
"type": "http",
"url": "https://…/api/mcp",
"headers": { "Authorization": "Bearer mc_live_…" }
}Dashboard
Schedule one email or a CSV of up to 1,000 recipients, spaced out over minutes or hours, from your browser.
To: list.csv (840 recipients) When: Monday 9:00 Pace: 1 minute apart
Know what happened to every email
Built for the person who gets asked “did that email go out?” and wants to answer in five seconds.
- Every attempt, on the record
- Each email keeps a timeline: who scheduled it, every send attempt, and exactly what the provider replied.
- Failures you can act on
- Permanent rejections stop immediately; temporary ones retry with backoff. What fails for good waits in one list with a resend button.
- Limits that delay, not drop
- Set an hourly cap per provider. Emails over the cap wait for the next free slot instead of failing.
- Bring any provider
- SMTP or Resend today, with credentials encrypted at rest. Switch providers without touching your app.
Run it on your own servers
Clone the repo and start it with Docker. Your emails, credentials, and logs never leave your infrastructure.
git clone https://github.com/ankit-tiwari-dev/mailclock cd mailclock && cp .env.example .env # set the secrets in .env (see the README) docker compose --profile app up -d --build
Or use the hosted version
Sign up, connect your provider, and create an API key. Your first email can be scheduled in about two minutes.
Create a free account