---
title: "Test mail (direct to provider)"
method: POST
path: "/v1s/test/send"
tags: ["Engine — Test"]
---

# Test mail (direct to provider)

`POST /v1s/test/send`

Send a test email directly to a provider, **bypassing rules and routing**.
For diagnostic use only. No API key authentication required.

Provider detection is based on the `host` URL:
- `pepipost.com` → Netcore format
- `sendgrid.com` → SendGrid format
- Other → `400 Bad Request`

## Request body

- TestSendRequest
  - `from` string, email, required
  - `to` string, email, required
  - `api_key` string, required — Provider API key (sent directly to provider).
  - `host` string, uri, required — Provider endpoint URL. Provider detection: `pepipost.com` → Netcore, `sendgrid.com` → SendGrid, other → 400.

## Response `200`

Test email sent; includes raw provider response.

- TestSendResponse
  - `provider` string
  - `status_code` string
  - `response` string — Raw provider response body.

## Other responses

- `400` — Unsupported provider host or missing fields.

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/revisions/73f83bc2eff8/schema)
