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

# ConfigureBasicAuthCompanyEmailCommandRequestInput

> Configures Basic Authentication for the email communication of a company: the outgoing mail server, its port, the encryption and the user name and password for the sign-in. The password cannot be read back. It is refused while an OAuth authorization is configured: remove it first. All encryption values are accepted; see the enum for their security risks. The sender address, the BCC address and the S/MIME settings stay unchanged. Error codes: COMPANY_NOT_FOUND, COMPANY_INACTIVE, COMPANY_EMAIL_ALREADY_AUTHORIZED, COMPANY_EMAIL_SERVER_REQUIRED, COMPANY_EMAIL_PORT_OUT_OF_RANGE, COMPANY_FIELD_EMPTY, COMPANY_FIELD_TOO_LONG. - Request



**Kind**: `input`

## Fields

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

The ID of the company.

---

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

The host name of the outgoing mail server, at most 255 characters. It must not be empty or only spaces.

---

**`port`**: `Int!` (required)

The port of the outgoing mail server, 1 to 65535.

---

**`encryption`**: `BasicAuthEncryption!` (required)

How the connection to the mail server is secured.

---

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

The user name for the sign-in, at most 255 characters. It must not be empty or only spaces.

---

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

The password for the sign-in, at most 255 characters. It must not be empty or only spaces.

