How to Send Emails from OpenClaw

OpenClaw runs locally and takes instructions from your messaging apps — Telegram, Discord, Signal. It’s handy for personal automation, but out of the box it can’t send email. AgentPatch adds that capability without any additional accounts or SMTP configuration.

Why This Matters

Sending email is a common automation task: notifying someone when something finishes, following up on a task, forwarding a summary to a colleague. Without an email tool, OpenClaw can draft the message but you have to send it yourself.

With AgentPatch’s Email tool connected, OpenClaw can send the email directly. You ask it to send a message, it sends it, and you get confirmation back in your chat. Plain text and HTML both work.

Setup

The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.

Install (zero dependencies, Python 3.10+):

pip install agentpatch

Set your API key:

export AGENTPATCH_API_KEY=your_api_key

Example commands your agent will use:

ap search "web search"
ap run google-search --input '{"query": "test"}'

Get your API key from the AgentPatch dashboard.

Install the AgentPatch skill from ClawHub — it teaches OpenClaw when to use AgentPatch and how to use the CLI:

clawhub install agentpatch

MCP Server (Alternative)

If you prefer raw MCP tool access instead of the skill, add AgentPatch to ~/.openclaw/openclaw.json:

{
  "mcp": {
    "servers": {
      "agentpatch": {
        "transport": "streamable-http",
        "url": "https://agentpatch.ai/mcp",
        "headers": {
          "Authorization": "Bearer YOUR_API_KEY"
        }
      }
    }
  }
}

Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard. Restart OpenClaw and it discovers all AgentPatch tools automatically.

Example

You’ve been using OpenClaw to monitor something — a server metric, a file change, a scheduled check. When it’s done, you want a notification:

“Send an email to me@example.com with the subject ‘Build finished’ and let me know it completed without errors.”

OpenClaw calls the Email tool through AgentPatch and sends the message. You get an email in your inbox and a confirmation message back in your Telegram chat.

Or a more direct delegation task:

“Draft and send a follow-up email to sarah@company.com. Subject: Re: Project timeline. Body: Let them know I’m reviewing the proposal and will respond by Thursday.”

OpenClaw writes the email and sends it in one step. You don’t have to open your email client.

This works for any scenario where you’d normally type out an email yourself: status updates, meeting confirmations, quick summaries, forwarding a piece of information to someone.

Wrapping Up

Email sending is one capability in the AgentPatch marketplace. Once connected to OpenClaw, you also get YouTube transcripts, web search, image generation, and more — all from the same Telegram or Discord chat. Visit agentpatch.ai to get your API key.