I have been looking for hours and guessing/testing and I give up…how can I use an email template on a notification event? I would like it so when a customer order is validated they get an html templated email I configured in email templates as an order email. I have the functionality working but the customer just gets:
“You receive this message because your email has been added to list of
targets to be informed of particular events into Dolibarr software of”
Yes it is possible. Sorry the reply is many years late, but it may still help someone in the future:
I tested this and use it on V 21.0.2 as of August 2025
This is assuming you have setup Outgoing emails with the correct parameters. If anyone needs help with that, please reply to this thread. Furthermore, I can help in some limited manner in what details can be customized for the subject header, and the body, with information derived from what was inserted in the form.
Go to Setup > Emails > Email Templates (tab) > “+” sign on the right side:
There should be a new form appearing:
Code: Not important, just use whatever you want
Type of Template: Select what action will trigger the email. Example: If I want the e-mail will be sent to myself when an Invoice is Paid, I will select “Customer Invoices”.
Owner: Blank
Private: No (I set it as No because I want to create the template, for another user, ie. a Cashier account to use)
Subject: Your Company Name Paid. AMOUNT_FORMATTEDTHIRDPARTY_NAME User: USER_LOGIN
From: no-reply@yourcompany (Remember to make this e-mail account first)
Attach File: Yes (This is the pdf file of whatever you generated)
Content:
Bill $ AMOUNT_FORMATTED THIRDPARTY_NAME
User: USER_LOGIN
Let me know if this helps anyone! or if it doesn’t work. Happy to contribute to the dolibarr forum.
Sorry, I left the second part to getting this to work:
Setup > Modules/Applications > Notifications on Business > Email Templates for notifications:
Under “Customer Invoice Paid”, select the template you just made, which my aforementioned example was “Customer Invoices”.
SAVE. That should be it. I get e-mails from every sale made. Just reading the subject of the e-mail that pops up in my phone’s notification gives me enough info to decide if I want to look deeper into the sale, or go back to more important work.