> ## 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.

# TestCompanyEmailCommandResponse

> 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. - Response



**Kind**: `object`

## Fields

**`success`**: `Boolean!`

true if the test email has been sent; otherwise false.

---

**`errorMessage`**: `String`

The error message of the mail server or the mail connection when the test failed, otherwise not set.

