# Configure Supplier email settings

Use **Settings → Email settings** to maintain the selected webshop's purchase-order email template. A saved template describes the intended message; it does not prove delivery, recipient acceptance, or external mail-service configuration.

## Task 1 — Configure the Supplier email template

### Purpose

Prepare the recipients, language, sender option, subject, and body for the selected webshop's Supplier purchase-order email template.

### Prerequisites

- Select the webshop whose template you want to edit.
- Have Settings edit access. View-only access can review the template but cannot save it.
- Wait for the template and its available suggestions to load.
- Use only the variables and options offered by the editor.

### Steps

1. Open **Settings → Email settings**.
2. Review the current template language and default-template choice.
3. Add valid recipients to **CC address(es)**, removing any address that is no longer needed.
4. Choose an available **From** option. In Lite, this control can be locked.
5. Maintain the **Subject** and **Body** fields using the suggestions or variables shown by the editor.
6. Check required fields, visible body-length validation, variable placement, and punctuation.
7. Review the complete template before saving it in Task 2.

### Fields and columns

This workflow uses a form and template editor rather than a data table:

- **CC address(es)** — removable email-address tags.
- **Template language** and the available default-template choice.
- **From** — an option offered by the account; it can be disabled in Lite.
- **Subject** and **Body** — required or length-limited where the editor indicates it.
- **Suggestions or variables** — the insertion options exposed by the editor.

### Expected result

The template contains the intended valid values as pending edits, ready for Save. The selected language and webshop context remain visible while you review the message.

### Limitations

- The displayed From option does not prove sender-domain authorization or external delivery.
- Supplier-specific templates and Supplier-level recipients are maintained in their own workflow; the Settings interface does not establish a universal Supplier → User → General priority rule.
- Do not put passwords, API keys, access tokens, or private customer payloads in a template or email-address field.
- This task does not send a test email or promise a delivery time.

### Errors and recovery

- Correct invalid or incomplete addresses using the validation shown by the field.
- If a control is locked, check the account edition, feature state, and permission rather than trying to bypass the lock.
- If the editor is loading, wait for it to finish before changing fields or navigating away.

## Task 2 — Save or undo Email settings

### Purpose

Persist the reviewed template or restore the last saved template without sending a purchase order.

### Prerequisites

- Complete Task 1 with the correct webshop and template language selected.
- Correct all visible validation.
- Have edit access and wait for any loading or saving state to finish.

### Steps

1. Review CC addresses, language, default choice, From option, Subject, Body, and variables.
2. Select **Save**.
3. Wait for save feedback and verify that the saved values reload in the selected webshop.
4. If the pending edits are not wanted, select **Undo changes** to restore the saved template before saving.
5. Use the separate Supplier communication workflow for Supplier-level recipients or Order Placement Method.

### Fields and columns

- **Save and Undo** — persist valid changes or restore the saved email configuration.
- **Validation, loading, and template state** — determine whether the current email form can be saved safely.

The shared Settings action bar provides **Save** and **Undo changes**. There are no table columns in this task. Verify the persisted form values and selected webshop.

### Expected result

Save stores the valid template configuration for the selected webshop. Undo discards the pending edits and restores the persisted template. Neither action by itself sends an order email.

### Limitations

- A successful template save does not confirm SMTP, sender authorization, delivery, rendering in a recipient's mail client, or recipient acceptance.
- This guide does not establish a universal email-processing time.
- A locked, view-only, or unavailable template is an account or permission boundary, not evidence that a different field should be edited.

### Errors and recovery

- If Save is disabled, check required fields, body length, permission, loading, and feature-lock state.
- If loading or saving fails, use the shared application feedback, wait for the operation to finish, recheck the persisted values, and retry safely.
- Do not repeat a purchase-order send merely because a template save or load failed; first confirm the current saved template.
