> For the complete documentation index, see [llms.txt](https://docs.fylr.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fylr.io/for-developers/api/endpoints/system/sendmail-test.md).

# /sendmail/test

Sends a test email to a single `to` address to verify the mail configuration. Each send writes an `EMAIL_SENT` or `EMAIL_SENT_FAILED` event. Requires `system.sendmail` (or `system.root`).

Differs from easydb 5: the dedicated `system.sendmail` right grants this operation. In easydb 5 the equivalent `POST /api/v1/settings/sendmail` required "an authenticated session with the `system.root` privilege".

### `POST /system/sendmail/test` — This endpoint sends a test email to one mail address. The user needs the `system.sendmail` or `system.root` system right. After sending an email `EMAIL_SENT` or `EMAIL_SENT_FAILED` event is written.

{% openapi src="/files/kfiDjhyZfEICNBmt5f49" path="/system/sendmail/test" method="post" %}
[fylr-openapi.yml](https://4100607288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAdRFzQASDY2Elfdm3wXW%2Fuploads%2Fgit-blob-ca0ed768cf0f36ca55fc3ee2ac61892ce5444d46%2Ffylr-openapi.yml?alt=media)
{% endopenapi %}
