---
title: "Test Email Sender"
method: POST
path: "/api/project/{slug}/email-senders/{sender_id}/test"
---

# Test Email Sender

`POST /api/project/{slug}/email-senders/{sender_id}/test`

## Request

- Base URL: `https://fluxito.app` (the document declares no server; this is the origin it was published from)
- URL: `https://fluxito.app/api/project/{slug}/email-senders/{sender_id}/test`
- Auth: none declared

Test a saved email sender.

Body:
  {
    "to":        "me@example.com",   // optional — if set, sends a real email
    "verify_only": false              // optional — default False
  }

Behaviour:
  * If ``to`` is omitted or ``verify_only`` is true → just run
    ``sender.verify()`` (connect / credential check, no DATA phase).
  * Otherwise → send a small test email to ``to`` with subject
    "Fluxito test email".

Either way, ``last_tested_at`` and ``last_test_status`` on the row
are updated so the settings UI can show a fresh "tested OK" badge.

## Path parameters

- `slug` string, required
- `sender_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fluxito/apis/fluxito-platform.md) · [All operations](https://skmtc.dev/fluxito/apis/fluxito-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fluxito/apis/fluxito-platform/revisions/d558e1fe9a04?raw)
