// agents · replit

Email for any Repl.

Add transactional email, form-to-email and inbound replies to a Repl over one clean REST API or the SDKs — and hand the Replit agent the full MCP tool surface. One key, kept in Secrets.

python · send from a repl
# Python, in a Repl — store DRIN_API_KEY in Secrets
import os, requests

requests.post(
  "https://api.drin.run/v1/emails",
  headers={"Authorization": f"Bearer {os.environ['DRIN_API_KEY']}"},
  json={
    "from": "hello@yourapp.com",
    "to": "user@acme.com",
    "subject": "Welcome",
    "text": "It works.",
  },
)
# → 202 Accepted  { "id": "msg_8fK2q1", "status": "queued" }
// add email to a repl[01/02]

Three steps to a sending Repl.

  1. 1

    Grab a key & verify a domain

    Sign up free, add three DNS records, and your domain authenticates itself — so mail from the Repl reaches the inbox.

  2. 2

    Add the key to Secrets

    Put DRIN_API_KEY in the Repl's Secrets pane and read it from the environment — never commit it into the Repl's files.

  3. 3

    Send, or connect the agent

    Call the endpoint from your code, or point Replit Agent at the Drin MCP server to let it send and triage for you.

Connect the agent over MCP →

at a glance
EndpointPOST /v1/emails
Base URLhttps://api.drin.run/v1
SDKsTypeScript & Python · or plain REST
Sandbox100 test emails / mo · verified recipients
// what you can add[02/02]

Send, receive, or hand it to the agent.

01

Send from any Repl

One REST call or an SDK import sends transactional mail from a Python, Node or Bun Repl — keep the key in Secrets.

02

Form-to-email

Wire a form in your Repl to one endpoint and submissions land in your inbox, with no separate backend to host.

03

Inbound & replies

Receive parsed inbound mail back into the Repl, routed by address — so a bot or app can read and reply.

04

Replit Agent via MCP

Connect Replit's agent to the Drin MCP server and it gets the full 54-tool surface to send, triage and reply.

// ship it

Add email to your next Repl.

Grab a key, drop in one REST call, and your Repl sends real mail. Test in the sandbox; production starts at $3 a month.