---
title: "Installation"
weight: 60
description: "Installation, activation and update guide for the Capmail module."
source_hash: "21cd8e91"
---

# Installation

## Download

Get the Capmail module from [CAP-REL](https://cap-rel.fr/contact/).

## Module installation

1. Go to **Home > Setup > Modules/Applications > Deploy/install external app/module**.
2. Select the module zip file and click **Send**.
3. Dolibarr automatically installs the files in the appropriate directory.

![External module deployment page in Dolibarr](screenshots/deploiement-module.webp)

## Activation

1. Go to **Home > Setup > Modules/Applications**.
2. Find "Capmail" in the module list.
3. Click the toggle to enable the module.

Once enabled, the module automatically creates the required tables in the database and registers its permissions and menus.

![Capmail module activation in the module list](screenshots/activation-module.webp)

Capmail requires the PHP **iconv** and **mbstring** extensions, which are used to read emails in all character sets. They ship with PHP and are enabled at most hosting providers. If one is missing, activation is refused with the message "Capmail cannot be enabled: the PHP extension ... is missing on this server": ask your hosting provider to enable it, then try again.

## Post-installation check

After activation, check that:

- The **Tools > Capmail** menu appears in the left sidebar.
- The configuration page is accessible via the gear icon next to the module, or via **Tools > Capmail > Setup**.
- The "Capmail" tab appears on third party cards.

## Update

To update the module to a new version:

1. Go to **Home > Setup > Modules/Applications > Deploy/install external app/module**.
2. Send the new zip file (it replaces the existing files).
3. **Disable then re-enable the module** to apply database updates and register the new hooks and permissions.

> **Warning:** the disable/reactivate step is essential for the new columns, permissions and menus to be registered correctly.

## Uninstallation

To uninstall the module, disable it from **Home > Setup > Modules/Applications**. The data (emails, attachments) remains in the database and on disk. If you re-enable the module later, you will find your data again.
