> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TestCompanyEmailCommandRequestInput

> Sends a test email with the stored email settings of the company to the given recipient and returns whether it was sent. A failed send, including credentials rejected by the mail server, is not an error of the request: the test was carried out, so the call answers 200 with success false and the message of the mail server in errorMessage. A company that does not exist answers 404 with the error code COMPANY_NOT_FOUND; an inactive company answers 409 with the error code COMPANY_INACTIVE; a company without mail settings answers 404 with the error code COMPANY_EMAIL_SETTINGS_NOT_FOUND; email settings without a usable sign-in answer 409 with the error code COMPANY_EMAIL_NOT_AUTHORIZED. The checks run in this order, and the first one that fails decides the answer: the company exists, the company is active, the mail settings exist, the email settings give a usable sign-in. The test is only meaningful with a recipient whose domain differs from the mail server. The stored settings are used; settings that are not saved yet are not tested. They are not changed. Error codes: COMPANY_NOT_FOUND, COMPANY_EMAIL_SETTINGS_NOT_FOUND, COMPANY_INACTIVE, COMPANY_EMAIL_NOT_AUTHORIZED. - Request



**Kind**: `input`

## Fields

**`companyId`**: `ID!` (required)

The ID of the company.

---

**`recipientAddress`**: `String!` (required)

The address that receives the test email, a valid mail address of at most 255 characters.

---

**`idempotencyKey`**: `String`

Client-supplied idempotency key. When provided, a repeated request with the same key and payload replays the original result instead of re-executing the mutation.

