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

# Accounts

# Sending accounts

A **sending account** is the delivery identity Mailofly uses when handing off mail to your provider — SMTP relay, Gmail API, or SES on a verified domain.

**In the app:** [Accounts](https://www.mailofly.com/user/accounts)

***

## Provider comparison

|                  | SMTP                        | Google          | Domain relay               |
| ---------------- | --------------------------- | --------------- | -------------------------- |
| **Setup**        | Host + credentials          | OAuth connect   | Verified domain required   |
| **From address** | Provider-dependent          | Gmail address   | Custom `@yourdomain.com`   |
| **Daily limit**  | You configure (default 500) | 500/day fixed   | No Mailofly cap            |
| **Best for**     | ESPs, custom servers        | Workspace teams | Branded transactional mail |
| **API create**   | ✓                           | ✓               | App only                   |

***

## Add an account

### SMTP

1. **Accounts → Add account → SMTP**
2. Enter a friendly **name**, **host**, **port**, **username**, **password**
3. Set **daily mail limit** (start low on new infrastructure)
4. Save → **Send test** to verify

```json theme={null}
POST /v1/accounts
{
  "name": "Transactional SMTP",
  "provider_type": "smtp",
  "smtp_host": "smtp.example.com",
  "smtp_port": 587,
  "smtp_username": "apikey",
  "smtp_password": "your-secret",
  "daily_mail_limit": 500
}
```

### Google

1. **Accounts → Add account → Google**
2. Complete OAuth consent
3. Account appears with your Google email as sender

Tokens refresh automatically. Mailofly requests offline access so sends continue without re-auth.

### Domain relay

1. Verify a domain under **[Domains](domains.md)** first
2. **Accounts → Add account → Domain sender**
3. Pick the verified domain, set **From email** and optional display name

Mail sends through Amazon SES with DKIM signing on your domain.

***

## Account key

Each account exposes a public **`acc_…` key** on the Accounts page. Optional for [Emails API](https://docs.mailofly.com/api/emails) calls (auto-selects an account when omitted):

```json theme={null}
{
  "from": "Acme <orders@yourdomain.com>",
  "to": ["buyer@example.com"],
  "subject": "Order confirmed",
  "html": "<p>Thanks for your purchase.</p>",
  "account_key": "acc_d8deb498ca3e43b09d01e6f251ca26ea"
}
```

***

## Quota & deferral

When a campaign exceeds an account's daily limit:

1. Remaining recipients get `mail_logs.status = deferred`
2. They send automatically the next calendar day
3. Or add another account to increase today's capacity

<Warning>
  Google accounts are capped at **500 sends/day**. Plan multi-account rotation for larger blasts.
</Warning>

***

## Related

* [Domains & DNS](domains.md)
* [Campaigns](campaigns.md)
* [API: Accounts](https://docs.mailofly.com/api/accounts)


## Related topics

- [Why use Topics?](/guides/sending/why-use-topics.md)
- [Email types](/getting-started/email-types.md)
- [When to Add an Unsubscribe Link](/guides/sending/when-to-add-an-unsubscribe-link.md)
- [Index](/changelog/index.md)
- [Topics](/audience/topics.md)
