Loading
Forke Mail overview & quickstart
Sign up
DocsForke MailForke Mail overview & quickstart

Forke Mail

4 min read

Forke Mail overview & quickstart

Overview

  • MCP server: https://mail.forke.space/mcp. Any AI app that supports the Model Context Protocol can add domains, write templates, send email, track events and read analytics for you.
  • CLI: forke-mail, one binary for macOS, Linux and Windows. It signs in through your browser, sets up projects and runs the MCP server locally.
  • HTTP API: plain JSON over HTTPS at https://mail.forke.space/api. Every tool the agents use is an API call you can make yourself.
  • Safe by default: agents do everyday work on their own, ask you in the chat before anything risky, and need your approval in the browser for anything that can't be undone or costs money.
  • Free to build with: test keys (fm_test_…) run every call for real but never deliver email and never use credits.

Quickstart

Pick the path that fits how you work.

With an AI app

  • Add https://mail.forke.space/mcp as a connector in your AI app (steps for each app are below).
  • Sign in to Forke Mail in the browser window that opens, pick a project and press Allow.
  • Ask it things like "set up Forke Mail for my Next.js app", "add my domain acme.com", "write a welcome email template" or "why did the email to [email protected] bounce?".

With the CLI

sh
curl -fsSL https://mail.forke.space/install.sh | sh
forke-mail login
cd my-app
forke-mail init
forke-mail send --to [email protected] --from "Acme <[email protected]>" --subject "Hello" --text "It works"

forke-mail init creates a test key, saves it to .env as FORKE_MAIL_API_KEY, adds .env to .gitignore and writes Forke Mail notes into AGENTS.md so your coding agent knows how to send email in this project.

With the HTTP API

sh
curl https://mail.forke.space/api/transactional \
  -H "Authorization: Bearer $FORKE_MAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"[email protected]","from_name":"Acme","from_address":"[email protected]","subject":"Welcome","html":"<p>Hi Ada!</p>"}'

Test mode and live mode

  • Test keys (fm_test_…): requests are validated exactly like live ones, emails are stored with status test and appear in Deliveries, but nothing is delivered and no credits are used. Any from address works, so you can build before your domain is verified. Test keys can't launch broadcasts.
  • Live keys (fm_live_…): real delivery from verified domains.
  • Create either kind under API keys in the dashboard, with forke-mail init, or ask your agent to create_api_key.
  • Keep keys in an environment variable such as FORKE_MAIL_API_KEY. Never put them in code or commit them.