> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sending Emails

> Everything you need to know about shooting emails out of Mailofly.

# Sending Emails 📨

Think of Mailofly as your super-reliable postman, except instead of putting envelopes in mailboxes, it shoots emails across the internet at lightning speed.

You tell Mailofly: *"hey, send this to that person"* — and it takes care of everything else. Signing, routing, rate limiting, delivery tracking — all handled.

***

## Ways to send

You've got four options, pick whatever fits your vibe:

1. **REST API** — make a simple `POST` request from literally any language or tool.
2. **Official SDKs** — ready-made libraries for TypeScript, Python, PHP, Go, and Dart. They do all the boring HTTP stuff for you.
3. **SMTP Gateway** — already using Nodemailer, Laravel, PHPMailer, or Supabase? Just point them at `smtp.mailofly.com` and you're done.
4. **AI / MCP Server** — let AI tools and code assistants trigger sends for you. Futuristic stuff.

***

## What every email needs

When you send an email, you need at least these things:

* **`from`** — who it's coming from. Must be a domain you've verified (e.g. `Hi Team <hello@yourcompany.com>`).
* **`to`** — who's getting it. You can send to multiple people at once.
* **`subject`** — the subject line. Make it interesting!
* **`html` or `text`** — the actual content. HTML for pretty, text for plain.

You can also add optional extras:

* 📎 **`attachments`** — PDFs, images, files, etc.
* 🕐 **`scheduled_at`** — send it at a specific time in the future.
* 🏷️ **`tags`** — label your emails for analytics filtering.
* 💬 **`headers`** — custom email headers if you need them.

***

## Where to go next

* [Send Your First Email](send-email.md) — full code examples for every language
* [Batch Sending](/docs/sending/batch-sending.md) — send to lots of people at once efficiently
* [Attachments](/docs/sending/attachments.md) — add files to your emails
* [Schedule Emails](/docs/sending/schedule-email.md) — queue up emails for later
* [Bounces & Suppressions](bounces-and-suppressions.md) — deal with failed deliveries


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.