MailKaka

INTEGRATIONS · AI APP BUILDERS

Send emails with v0

v0 builds Next.js apps, so email is a server action or route handler away. Paste the prompt, add your MailKaka key as an environment variable in Vercel, and deploy.

  • 3,000 emails a month free
  • Billed in INR
  • Sent from Mumbai
v0 · your project
Add transactional email to this app using MailKaka…
  • Saved secret MAILKAKA_API_KEY
  • Created backend function send-email
  • Welcome email sends on sign-up
Illustration
InboxDelivered

Welcome to Acme

From Acme <hello@acme.in>

HOW IT WORKS

Live in three steps.

  1. 01

    Verify your domain

    Add the DNS records MailKaka shows you. Usually a few minutes.

  2. 02

    Create an API key

    Keep it in a server-side secret called MAILKAKA_API_KEY.

  3. 03

    Paste one prompt into v0

    It adds a backend function that sends from your domain.

PROMPT

Paste this prompt into v0

Add MAILKAKA_API_KEY in v0's environment variables or your Vercel project's settings before you test.

  1. 1Create a free MailKaka account. The free plan includes 3,000 emails a month.
  2. 2Add your domain in the dashboard and copy the DNS records it shows, including the _mailkaka-verify TXT record, to your DNS provider. Sending works once the domain shows Verified.
  3. 3Create an API key for that domain. It starts with mk_. Store it as a secret called MAILKAKA_API_KEY, never in frontend code.
Prompt for v0
Add transactional email to this app using MailKaka, a Resend-compatible email API.

1. Read my MailKaka API key from the environment variable (server-only, no NEXT_PUBLIC_ prefix). Name it MAILKAKA_API_KEY. Never expose it in frontend code.
2. Create a Next.js server action ("use server") or a route handler at app/api/send/route.ts. It sends a POST request to https://www.mailkaka.in/api/emails with the header "Authorization: Bearer <MAILKAKA_API_KEY>" and a JSON body: { "from": "<App name> <hello@MY-DOMAIN>", "to": ["<recipient>"], "subject": "...", "html": "..." }. My domain is already verified in MailKaka; use it in the from address.
3. Only call that function from the server side. Never let the browser choose arbitrary recipients: send to the signed-in user's own address, or to addresses the app already trusts.
4. Send a welcome email when a new user signs up. If sending fails, log the error response and show a friendly message instead of crashing.

The full API reference is at https://www.mailkaka.in/docs.md. Read it before writing the code.

WHAT YOU CAN SEND

Every email your app needs.

  • Welcome emails

    Greet every new sign-up from your own address.

  • OTPs and password resets

    Sign-in codes and reset links that arrive fast.

  • Orders and receipts

    Confirmations, invoices and shipping updates.

  • Replies that reach you

    Customer replies land in a shared team mailbox.

TROUBLESHOOTING

If something doesn't work.

  • The API returns 401 Invalid API key

    The secret is missing, misnamed or copied with a space. Check it is called MAILKAKA_API_KEY in the backend secrets, starts with mk_, and that the function reads that exact name.

  • The API returns 403

    The from address isn't on the domain the key belongs to, or the domain isn't verified yet. Finish the DNS records in the dashboard and use an address like hello@your-domain.

  • The API key shows up in the browser's network tab

    The email code is running in the frontend. Ask the builder to move it into a backend function and call that function instead.

  • Emails land in spam

    Add the DMARC record from the dashboard, use a real from name, and avoid link shorteners. New domains also build reputation over the first few days.

ALREADY ON RESEND?

Switch with one line.

MailKaka accepts the same send request as Resend. Keep the Resend Node SDK, swap the key and set the base URL. Single and batch sends work the same way; open and click tracking aren't supported.

MailKaka vs Resend
Resend SDK
new Resend(process.env.MAILKAKA_API_KEY, {
  baseURL: "https://www.mailkaka.in/api",
})

BUILT FOR AI AGENTS

Let Claude Code, Cursor or any MCP client run your email.

MailKaka hosts an MCP server. Connect your coding agent once, and it can add your domain and show the DNS records, check verification, send a test email, read delivery status, and create the API key your app needs. You sign in from a browser and choose what it's allowed to do.

  • Per-agent limits: 60 sends a minute and 500 emails a day
  • Separate permissions for viewing, changing, sending and mailboxes
  • A preview before deletes, batch sends and new API keys
  • Every connection listed, and removable, in the dashboard
claude mcp add --transport http mailkaka https://www.mailkaka.in/api/mcp

FAQ

Common questions.

Where do I put the API key for a v0 app?

In the project's environment variables (v0's Vars panel, or Vercel → Project → Settings → Environment Variables). Never prefix it with NEXT_PUBLIC_, which would ship it to the browser.

Can I send a test email before verifying a domain?

No. MailKaka only sends from domains you've verified, so every email comes from your own address. Adding the DNS records usually takes a few minutes, and the free plan includes one domain.

Why not put the API key in the frontend?

Anyone who opens your site could read it and send email as you. Bounces and spam complaints from that would count against your account. Keep the key in a server-side secret and call MailKaka from a backend function.

Is MailKaka a good email API for Indian startups?

It's built for them. Email is sent from Mumbai, plans are priced and billed in INR through Razorpay (UPI and cards), and the free plan covers 3,000 emails a month. It accepts the same send request as Resend, so moving later is easy either way.

START WITH ONE DOMAIN

Send your first email from v0 today.

Free for 3,000 emails a month. Paid plans are billed in INR through Razorpay.

RELATED

Send Emails from a v0 App (Next.js on Vercel) | MailKaka