Unified Email API for Gmail, Outlook & Zoho

Send, receive, and manage emails through a single API gateway with secure OAuth2 bindings and full user control.

Core Features

OAuth2 Binding

Bind user Gmail, Outlook, or Zoho accounts with secure OAuth2 flow.

Unified API

Send and manage emails from multiple providers via a single REST API.

Fast Delivery

High-speed delivery with logging and retry management.

How It Works

1. User logs in via Google, Microsoft or Zoho.
2. OAuth2 tokens are stored securely in MongoDB.
3. Admin uses API key to call `/api/send-mail-external`.
4. Email is sent on behalf of that user via the bound provider.

API Overview

POST https://mailer-js.vercel.app/api/send-mail-external

Headers:
  Content-Type: application/json

Body:
{
  "apiKey": "your_api_key",
  "to": "recipient@example.com",
  "subject": "Hello from Mail Server",
  "text": "<strong>Hello</strong> World!"
}

Use this endpoint to send email on behalf of any user who has bound their email account.

Supported Providers

GmailOutlookZoho

Frequently Asked Questions

Is this safe for production use?

Yes, we use secure OAuth2 flows and never store user passwords. All tokens are encrypted and stored in MongoDB.

How do I generate an API key?

After login, visit your dashboard and click 'Generate API Key'. It will be tied to your account.

Can I revoke OAuth access?

Yes. Users can revoke access from their Gmail, Outlook, or Zoho settings at any time.

Start Sending Emails in Minutes

Bind your accounts and integrate mail-sending with just one API call.