# Mail

Send invitation email through SMTP, or log messages while you develop.

Charter sends outbound email for organization invitations. Configuration mirrors Laravel’s mail environment variables.

For local work you may leave the default `log` mailer, which writes the message to tracing and sends nothing. When you are ready for real delivery, switch to SMTP:

```sh
MAIL_MAILER=smtp
MAIL_FROM_ADDRESS=noreply@example.com
MAIL_FROM_NAME=Charter
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=…
MAIL_PASSWORD=…
```

## Choose a mailer

| `MAIL_MAILER` | Behavior |
| --- | --- |
| `log` (default) | Writes the message to tracing; nothing leaves the process |
| `smtp` | Sends through SMTP (including an Amazon Simple Email Service SMTP endpoint) |

You may also pass `MAIL_URL=smtp://user:pass@host:587` (or `smtps://` for implicit TLS). See [Environment variables](/docs/environment-variables/) for the full list.

> [!WARNING]
> Production Pro installs with invitations enabled need `MAIL_MAILER=smtp` and a valid From address, or the server will not start.

Delivery runs on the `mail` background queue. Keep the embedded worker on, or run `charter work`.
