Administration -- Leads and third parties
This tab (admin/leads.php) configures the pre-filled values when quickly creating a third party, contact or project from an incoming email (Lead Mode).
Default values for new third parties
Third party status
Constant: CAPMAIL_LEAD_DEFAULT_THIRDPARTY_STATUS
When creating a third party from an email, this status is applied automatically:
- Prospect (
0) -- not yet a customer. - Customer (
1) -- active business relationship.
Assigned sales representative
Constant: CAPMAIL_LEAD_DEFAULT_COMMERCIAL
Dolibarr user (sales rep) automatically assigned as responsible for the newly created third party. Displayed afterwards on the third party card.
Default payment terms
Constant: CAPMAIL_LEAD_DEFAULT_PAYMENT_TERMS
Payment terms (e.g. "30 days end of month") applied to the new third party. The list reflects the active terms in Dolibarr (Setup -> Dictionaries -> Payment terms).
Default payment mode
Constant: CAPMAIL_LEAD_DEFAULT_PAYMENT_MODE
Preferred payment mode (bank transfer, check, direct debit, etc.).
Default bank account
Constant: CAPMAIL_LEAD_DEFAULT_BANK_ACCOUNT
Bank account saved on the new third party, for incoming and outgoing payments concerning it. Only appears if the Bank module is enabled.
"Project creation" section
Visible only if the Projects module is enabled.
Automatic project creation
Constant: CAPMAIL_LEAD_AUTO_CREATE_PROJECT
If enabled, the Create a project checkbox of the third party creation form is ticked by default, with the email subject as title. The project is created with the third party, unless you untick the box.
Project reference prefix
Constant: CAPMAIL_LEAD_PROJECT_PREFIX
Prefix added in front of the proposed project title (e.g. LEAD- produces LEAD-Quote request), in the form as in the automatic filters. The project reference remains the one from the Dolibarr numbering module. Use a distinctive prefix to spot lead-originated projects at a glance.
"Reply to emails" section
Automatic reply
Constant: CAPMAIL_LEAD_AUTO_REPLY
If enabled, offers a pre-filled reply draft (based on the template below) each time an incoming email is opened in Lead Mode. The reply is not sent automatically -- it must always be validated manually.
Default email template
Constant: CAPMAIL_LEAD_DEFAULT_REPLY_TEMPLATE
Dolibarr email template used to pre-fill the reply. The list reflects the active thirdparty type templates in Setup -> Emails -> Email templates.
"Third party status colors" section
Colors used in the preview sidebar to visually signal the status of the third party linked to the email.
Prospect color
Constant: CAPMAIL_COLOR_PROSPECT -- default #FEF9C3 (pale yellow).
Customer color
Constant: CAPMAIL_COLOR_CUSTOMER -- default #DCFCE7 (pale green).
Closed / inactive third party color
Constant: CAPMAIL_COLOR_CLOSED -- default #FEE2E2 (pale red).
These three colors are independent of the standard Dolibarr colors and are only used by Capmail.