Automatic email notifications in Dolibarr 24
Dolibarr 24's Notifications module tested with a real test mail server: notifying a customer contact, a user or a fixed address, customizing the text, alerting the accountant only above an amount, and why the PDF invoice is not attached on validation.
Want someone to look at your instance? Diagnosis, fixed price €90.
What was checked (versions, tests, code read)
Tests on 15/11/2026 on Dolibarr 24.0.3 (company in France), done in the interface with a driven browser. Emails sent to a local SMTP server that stores each message: 8 emails received and read (recipient, subject, text, attachments). Customer contact subscribed to "Customer invoice validated", six invoices validated (default text, then email template with "Attach file" set to Yes), one invoice set back to draft and validated again, fixed address with a €500 excl. tax threshold tested at €100 and €600 excl. tax, user subscribed to "Customer invoice paid" then invoice paid. Interface run in French; English labels taken from the Dolibarr 24.0.3 language files. Dolibarr 24.0.3 code read (core/class/notify.class.php, admin/notification.php, societe/notify/card.php, user/notify/card.php, core/triggers/interface_50_modNotification_Notification.class.php).
Dolibarr’s Notifications module sends an email by itself when an event happens: an invoice validated, an invoice paid, an order, a shipment, an expense report… It ships with Dolibarr, with nothing to buy.
This guide was written on 15 November 2026 on a Dolibarr 24.0.3 connected to a test mail server that keeps every message: each email quoted below was received and opened (recipient, subject, text, attachments). What surprises most: the PDF invoice is not attached to the validation notification, even when you ask for it. Our test interface was in French; the English labels below come from Dolibarr’s language files.
1. Before you start
- Email sending must work. Notifications use the same setup as Dolibarr’s other emails. If a test email does not go out, fix that first: setting up email sending.
- Enable the module in Setup > Modules/Applications: it is called “Notifications on business event”.
The list of events offered depends on the enabled modules. On our installation it had 15: customer orders, customer invoices, supplier orders, shipments, expense reports. Proposals were not there, because the Proposals module was not enabled.
2. Three ways to choose who receives the email
| Recipient | Where to set it | What for |
|---|---|---|
| A third party’s contact | third party card, Notifications tab | tell a customer or supplier about their own documents |
| A user | user card, Notifications tab | tell someone on the team, for all third parties |
| A fixed address | module setup | an address (accountant, shared mailbox), with an optional amount threshold |
In the first two cases, an email is required. According to Dolibarr’s code, the third party tab only offers its contacts (the email on the third party card itself does not count). Tested on a third party with no contact: “To be able to add email notifications, you must first define contacts with valid emails for the third party”. For a user, the subscription needs an email on their card.
Subscribing a customer contact
On the third party card, Notifications tab, click the +, choose the contact, the event (for example Customer invoice validated) and the type Email, then Add. The same tab then lists the notifications sent:

The check before validating
When a notification is about to go out, Dolibarr says so in the confirmation window, with the addresses. It is the simplest way to check a setting without waiting for the email:

3. The default message is not made for a customer
With no setting, our contact received this (in French on our installation; here the English text from the language files), with the subject “[Boulangerie test] Automatic notification” (the name of our test company):
You receive this message because your email has been added to list of targets to be informed of particular events into Dolibarr software of Boulangerie test. This event is the following:
Invoice FA2611-0011 has been validated.
In the HTML version, the reference is a link to the invoice record in your Dolibarr: your customer cannot open it without a Dolibarr account. And no attachment.
4. Customizing the text with an email template
- Setup > Emails, Email templates tab, +: give a label, the type Customer invoices, a subject and a text. We used “Your invoice __REF__” and a text signed __MYCOMPANY_NAME__, with Attach file set to Yes.
- In the Notifications module setup, Emails templates for notifications section, choose this template next to “Customer invoice validated”, then Save.
Tested result: the template’s subject and text, __REF__ replaced by the final reference (FA2611-0012) and __MYCOMPANY_NAME__ by the company name. For other variables, see email template variables.
Careful: the template applies to every recipient of the event. In our test, the accountant notified through a fixed address received the same “Your invoice…” as the customer. If you notify both the customer and the team, write a text that suits both.
5. The trap: the invoice is not attached on validation
This is the question asked on the forum (example, French): the customer should receive their invoice as soon as it is validated. It does not work:
| Case tested | PDF attached? |
|---|---|
| Validation, default message | no |
| Validation, template with “Attach file” set to Yes | no |
| Invoice set back to draft (Modify) then validated again | yes, but the customer receives a 2nd email |
| “Customer invoice paid” notification | yes |
The reason is in the code: the notification is sent during validation, and Dolibarr only attaches the PDF if it already exists on disk. On the first validation it has not been created yet (it is created just after: it then shows in the invoice’s attached files).
In practice: to send the invoice to the customer, keep the invoice’s Send email button. Notifications are mostly for informing: the team, the accountant, or the customer about an event that does not need the document.
6. Notifying the accountant only above an amount
In the module setup, the Global recipients emails for automatic email notifications list lets you enter an address per event, with an Amount (excl. tax) >= threshold:

Tested with 500: a €100 excl. tax invoice only notified the customer contact; a €600 excl. tax invoice also sent an email to the fixed address. Several addresses are separated by a comma. The screen’s help also offers the __SUPERVISOREMAIL__ and __AUTHOREMAIL__ keywords (supervisor, author of the document): we did not test them.
7. Notifying a colleague for all customers
On a user card, Notifications tab, the same + subscribes that user to an event, for all third parties. Tested: Marc, subscribed to “Customer invoice paid” and linked to no customer, received the payment notice for an invoice of “Client QR”, with the PDF attached (the invoice already existed).
Common problems
| What you see | Verified cause | What to do |
|---|---|---|
| “No automatic email notifications are planned for this event type and company” on validation | no subscription for this event | Notifications tab of the third party or user, or fixed address |
| The event you want is not in the list | the related module is not enabled | enable the module (Proposals, Shipments…) |
| “To be able to add email notifications, you must first define contacts with valid emails for the third party” | no contact with an email | create a contact with their email |
| The customer receives “You receive this message because…” | no template chosen for the event | create a template and choose it in the module setup |
| The PDF invoice is not attached | PDF not yet created on validation | the invoice’s “Send email” button |
| The accountant receives “Your invoice…” | one template per event | a text that suits every recipient |
What we did not test
Proposals (module not enabled on our test bench), including online signature: the forum reports that third party variables are not filled in there (thread, French); orders and shipments; the __SUPERVISOREMAIL__ and __AUTHOREMAIL__ keywords; multi-company.
Summary
- Working email sending, then the “Notifications on business event” module.
- Third party contact, user or fixed address: one tab or field per case.
- The validation window tells who will be notified.
- One email template per event replaces the default text, for every recipient.
- No PDF invoice attached on validation: send it with “Send email”.
- “Amount (excl. tax) >=” threshold to notify a fixed address only above an amount.
Next
Setting up email sending and email template variables.
If your notifications do not go out or go to the wrong people, the €90 diagnosis means looking at your installation with you for an hour, then giving you in writing what is blocking and what the fix would cost.
Frequently asked questions
Why is the PDF invoice not attached to Dolibarr's "Customer invoice validated" notification?
Because the notification is sent during validation, before Dolibarr has created the invoice PDF. Tested on Dolibarr 24.0.3: no attachment, even with an email template set to "Attach file: Yes". The PDF is attached only if it already exists: invoice set back to draft and validated again (the customer then receives a second email), or payment notification. To send the invoice to the customer, use the invoice's "Send email" button.
How do I customize the text of Dolibarr notifications?
Create a template in Setup > Emails, "Email templates" tab, with the document type (for example "Customer invoices"), then choose it for the event in the Notifications module setup, "Emails templates for notifications" section. Tested on Dolibarr 24.0.3: the template's subject and text replace the default message, and __REF__ gives the invoice's final reference.
How do I notify the accountant only for large invoices in Dolibarr?
In the Notifications module setup, global recipients list, enter the address next to BILL_VALIDATE and an "Amount (excl. tax) >=" threshold. Tested with 500: a €100 excl. tax invoice only notified the customer, a €600 excl. tax invoice also notified the fixed address.