# Send email over SMTP

> Plug any SMTP client (Nodemailer, PHPMailer, Django, WordPress) into Galon Mail: user `galon`, your API key as the password.

Estimated time: 5 minutes.

## Before you start

- A verified sending domain and a key with `mail:send` ([Create an API key](/cloud/docs/guides/create-an-api-key)).

## 1. Use these settings

Port 587 upgrades with STARTTLS; port 465 is TLS from the first byte. The `From` address must be on a verified domain of the key's project.

```text
host: smtp.galon.ai
port: 587 (STARTTLS) or 465 (TLS)
user: galon
pass: your API key (scope mail:send)
```

## 2. Send a test message

Python's standard library is enough. A message accepted by Galon returns no refused recipient.

```python
import os, smtplib
from email.message import EmailMessage

msg = EmailMessage()
msg["From"] = "Acme <hello@your-verified-domain.com>"
msg["To"] = "delivered@test.galon.ai"
msg["Subject"] = "Hello from Galon"
msg.set_content("It works.")

with smtplib.SMTP("smtp.galon.ai", 587) as s:
    s.starttls()
    s.login("galon", os.environ["GALON_API_KEY"])
    print(s.send_message(msg))
```

**Expected output**

```text
{}
```

![A terminal showing the Python script send_test.py (EmailMessage, smtplib.SMTP on port 587, starttls, login with the user galon and the API key from the environment), then its run, which prints an empty dictionary: no recipient refused.](/cloud/docs/guides/media/send-email-over-smtp-1-terminal.webp)

*An empty dictionary means every recipient was accepted.*

## 3. Find it in the API

Each SMTP message becomes one email job, listed in `GET /v1/emails` with the same statuses as an API send.

**With MCP: list_emails**

```json
{"tool": "list_emails", "arguments": {}}
```

## Next

- [Send your first email with the API](/cloud/docs/guides/send-your-first-email)
- [API reference](/cloud/docs/api)
- [All guides](/cloud/docs/guides)
