← Back to blog

GUIDE

How to send email from Claude Code

By Paul Zacharia · 2026-10-30

To send email from Claude Code, connect it to an email service through an MCP server, verify a domain you own, and ask for what you want in plain language. Claude Code then calls the service's tools directly. This guide uses MailKaka, but the steps look similar with any provider that hosts an MCP server.

1. Connect the server

Run this in your terminal:

claude mcp add --transport http mailkaka https://www.mailkaka.in/api/mcp

Start Claude Code, type /mcp, choose mailkaka, and sign in. A browser window opens where a workspace admin approves the connection and chooses what it can do. For a first setup, leave View account, Manage account, and Send email selected.

2. Verify a domain

Ask for it directly:

Add mail.yourcompany.in to MailKaka and show me the DNS records.

Claude Code adds the domain and shows the records. You add them at your DNS provider, because that step needs your DNS account. Then ask it to check verification. DNS changes can take a while to appear, so a pending result the first time is normal.

3. Send, then check delivery

Send a test email from hello@mail.yourcompany.in to me@yourcompany.in, then check whether it arrived.

Sending queues the email and returns an id. Claude Code uses that id to read its status. A status ofdelivered means the receiving mail server accepted it, which isn't the same as reaching the inbox, so check your inbox too on a first send.

4. Connect your application

Your agent is for setup and operations. Your application should call the REST API with its own key.Here's why the two are separate. You can ask Claude Code to create the key and write the integration, and to store the key in an environment variable. The key's secret appears in your chat when an agent creates it, so create it in the dashboard if you want to keep it out of your assistant's history.

Before you rely on it

Agents can make mistakes with addresses, and bounces count against your whole workspace. Readhow to limit what an agent can sendbefore pointing one at real customers. The full tool list is in thedocs.

How to send email from Claude Code | MailKaka