<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dolibarr.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlexBordaraud</id>
	<title>Dolibarr ERP CRM Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dolibarr.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlexBordaraud"/>
	<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php/Special:Contributions/AlexBordaraud"/>
	<updated>2026-11-24T04:00:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_TvaNdf&amp;diff=66071</id>
		<title>Module TvaNdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_TvaNdf&amp;diff=66071"/>
		<updated>2026-05-04T06:52:15Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: Created page with &amp;quot;Category:Complementary modules Category:TVANDF Category:Expense reports Category:VAT management Category:Multi-VAT {{TemplateDocDevEn}} {{TemplateDocUser}}...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Complementary modules]]&lt;br /&gt;
[[Category:TVANDF]]&lt;br /&gt;
[[Category:Expense reports]]&lt;br /&gt;
[[Category:VAT management]]&lt;br /&gt;
[[Category:Multi-VAT]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
=Informations=&lt;br /&gt;
&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|modulename=Tvandf&lt;br /&gt;
|editor=Alex BORDARAUD - Lysis https://lysis.net&lt;br /&gt;
|webbuy=&lt;br /&gt;
|status=stable&lt;br /&gt;
|version=1.0.5&lt;br /&gt;
|minversion=19.0&lt;br /&gt;
|maxversion=&lt;br /&gt;
|note=Module ID: 142804 ([[List_of_modules_id]])&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TVANDF&#039;&#039;&#039; (technical module name: &#039;&#039;&#039;TvaNdf&#039;&#039;&#039;, directory &amp;lt;code&amp;gt;tvandf&amp;lt;/code&amp;gt;, ID &#039;&#039;&#039;142804&#039;&#039;&#039;) is a complementary Dolibarr module that transforms &#039;&#039;&#039;multi-VAT expense report entry&#039;&#039;&#039;. It adds a &#039;&#039;&#039;matrix interface&#039;&#039;&#039; allowing expense breakdown across &#039;&#039;&#039;multiple VAT rates&#039;&#039;&#039; with &#039;&#039;&#039;single supporting document&#039;&#039;&#039; for the entire group. Technically, the module uses extrafield &amp;lt;code&amp;gt;tvandf_line_group&amp;lt;/code&amp;gt; to group generated standard Dolibarr lines, providing &#039;&#039;&#039;full compatibility&#039;&#039;&#039; with the native accounting engine.&lt;br /&gt;
&lt;br /&gt;
=Technical Architecture=&lt;br /&gt;
&lt;br /&gt;
==Database Layer==&lt;br /&gt;
* &#039;&#039;&#039;No core table modifications&#039;&#039;&#039;: Uses existing &amp;lt;code&amp;gt;expensereport_det&amp;lt;/code&amp;gt; structure&lt;br /&gt;
* &#039;&#039;&#039;Extrafield integration&#039;&#039;&#039;: &amp;lt;code&amp;gt;options_tvandf_line_group&amp;lt;/code&amp;gt; UUID links related lines&lt;br /&gt;
* &#039;&#039;&#039;ECM compatibility&#039;&#039;&#039;: Standard &amp;lt;code&amp;gt;fk_ecm_files&amp;lt;/code&amp;gt; reference sharing across group members&lt;br /&gt;
* &#039;&#039;&#039;VAT dictionary binding&#039;&#039;&#039;: Dynamic rate columns from active &amp;lt;code&amp;gt;c_tva&amp;lt;/code&amp;gt; entries filtered by &amp;lt;code&amp;gt;mysoc-&amp;gt;country_id&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Hook Implementation==&lt;br /&gt;
* &#039;&#039;&#039;Context targeting&#039;&#039;&#039;: &amp;lt;code&amp;gt;expensereportcard&amp;lt;/code&amp;gt; hook injection points&lt;br /&gt;
* &#039;&#039;&#039;Asset loading&#039;&#039;&#039;: CSS/JS via &amp;lt;code&amp;gt;printCommonFooter&amp;lt;/code&amp;gt; with bootstrap data attributes&lt;br /&gt;
* &#039;&#039;&#039;Action buttons&#039;&#039;&#039;: &amp;lt;code&amp;gt;addMoreActionsButtons&amp;lt;/code&amp;gt; for matrix toggle and add-line functions&lt;br /&gt;
* &#039;&#039;&#039;Permission alignment&#039;&#039;&#039;: Respects core &amp;lt;code&amp;gt;expensereport-&amp;gt;creer&amp;lt;/code&amp;gt; rights and draft/refused workflow&lt;br /&gt;
&lt;br /&gt;
==Frontend Architecture==&lt;br /&gt;
* &#039;&#039;&#039;jQuery UI dialogs&#039;&#039;&#039;: Matrix forms with VAT rate columns and shared metadata fields&lt;br /&gt;
* &#039;&#039;&#039;AJAX endpoints&#039;&#039;&#039;: &amp;lt;code&amp;gt;ajax/expensereport_matrix.php&amp;lt;/code&amp;gt; for CRUD operations on line groups&lt;br /&gt;
* &#039;&#039;&#039;File upload&#039;&#039;&#039;: Integrated ECM document attachment with progress feedback&lt;br /&gt;
* &#039;&#039;&#039;View switching&#039;&#039;&#039;: Seamless toggle between matrix UI and standard Dolibarr line table&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
==English (Technical)==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Core Problem:&#039;&#039;&#039; Standard Dolibarr expense workflow (&amp;lt;code&amp;gt;expensereport/card.php&amp;lt;/code&amp;gt;) processes entries through &amp;lt;code&amp;gt;ExpenseReportLine&amp;lt;/code&amp;gt; objects with &#039;&#039;&#039;one VAT rate per database row&#039;&#039;&#039;. Multi-rate receipts require &#039;&#039;&#039;multiple line insertions&#039;&#039;&#039;, duplicated context fields (&amp;lt;code&amp;gt;fk_projet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;date&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;comments&amp;lt;/code&amp;gt;), and separate ECM document associations following native &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt; patterns.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TVANDF Solution:&#039;&#039;&#039; Hook-based matrix UI overlaying the expense card context. Dynamic VAT grid populated from active tax dictionary, generating &#039;&#039;&#039;standard expense lines&#039;&#039;&#039; linked via technical extrafield. ECM integration uses shared document references across grouped lines.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Technical Benefits:&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Non-intrusive integration&#039;&#039;&#039;: Hook system preserves core functionality&lt;br /&gt;
* &#039;&#039;&#039;Native line compatibility&#039;&#039;&#039;: Generated &amp;lt;code&amp;gt;ExpenseReportLine&amp;lt;/code&amp;gt; objects with standard fields&lt;br /&gt;
* &#039;&#039;&#039;Extrafield grouping&#039;&#039;&#039;: UUID-based line association without schema modifications&lt;br /&gt;
* &#039;&#039;&#039;Permission compliance&#039;&#039;&#039;: Core rights and status workflow preservation&lt;br /&gt;
* &#039;&#039;&#039;ECM integration&#039;&#039;&#039;: Standard document management with reference sharing&lt;br /&gt;
&lt;br /&gt;
==Français (Technique)==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problème central :&#039;&#039;&#039; Le workflow natif Dolibarr (&amp;lt;code&amp;gt;expensereport/card.php&amp;lt;/code&amp;gt;) traite les saisies via des objets &amp;lt;code&amp;gt;ExpenseReportLine&amp;lt;/code&amp;gt; avec &#039;&#039;&#039;un taux de TVA par ligne en base&#039;&#039;&#039;. Les reçus multi-taux nécessitent &#039;&#039;&#039;plusieurs insertions de lignes&#039;&#039;&#039;, la duplication des champs de contexte (&amp;lt;code&amp;gt;fk_projet&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;date&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;comments&amp;lt;/code&amp;gt;), et des associations ECM séparées suivant les patterns natifs &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution TVANDF :&#039;&#039;&#039; Interface matricielle basée sur hooks superposée au contexte de fiche de frais. Grille TVA dynamique alimentée depuis le dictionnaire fiscal actif, générant des &#039;&#039;&#039;lignes de frais standard&#039;&#039;&#039; reliées via extrafield technique. L&#039;intégration ECM utilise des références de documents partagées entre lignes groupées.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Avantages techniques :&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Intégration non-intrusive&#039;&#039;&#039;: Le système de hooks préserve les fonctionnalités du cœur&lt;br /&gt;
* &#039;&#039;&#039;Compatibilité lignes natives&#039;&#039;&#039;: Objets &amp;lt;code&amp;gt;ExpenseReportLine&amp;lt;/code&amp;gt; générés avec champs standards&lt;br /&gt;
* &#039;&#039;&#039;Regroupement par extrafield&#039;&#039;&#039;: Association de lignes par UUID sans modifications de schéma&lt;br /&gt;
* &#039;&#039;&#039;Conformité permissions&#039;&#039;&#039;: Préservation des droits et workflow de statut du cœur&lt;br /&gt;
* &#039;&#039;&#039;Intégration ECM&#039;&#039;&#039;: Gestion documentaire standard avec partage de références&lt;br /&gt;
&lt;br /&gt;
=Fonctionnalités techniques=&lt;br /&gt;
&lt;br /&gt;
==Matrix UI Components==&lt;br /&gt;
* &#039;&#039;&#039;Dynamic VAT columns&#039;&#039;&#039;: Auto-generated from &amp;lt;code&amp;gt;c_tva&amp;lt;/code&amp;gt; active entries for company country&lt;br /&gt;
* &#039;&#039;&#039;Shared metadata fields&#039;&#039;&#039;: Date, expense type, project, description, quantity, mileage&lt;br /&gt;
* &#039;&#039;&#039;File attachment zone&#039;&#039;&#039;: ECM upload with &amp;lt;code&amp;gt;fk_ecm_files&amp;lt;/code&amp;gt; reference storage&lt;br /&gt;
* &#039;&#039;&#039;Calculation engine&#039;&#039;&#039;: Real-time HT/TTC totals with VAT breakdown display&lt;br /&gt;
* &#039;&#039;&#039;Validation logic&#039;&#039;&#039;: Field requirement checks aligned with Dolibarr expense configuration&lt;br /&gt;
&lt;br /&gt;
==Backend Processing==&lt;br /&gt;
* &#039;&#039;&#039;Line group creation&#039;&#039;&#039;: UUID generation and extrafield population on insert&lt;br /&gt;
* &#039;&#039;&#039;ECM file linking&#039;&#039;&#039;: Document association across all group member lines&lt;br /&gt;
* &#039;&#039;&#039;Deletion cascade&#039;&#039;&#039;: Group-level removal with confirmation dialog&lt;br /&gt;
* &#039;&#039;&#039;Edit synchronization&#039;&#039;&#039;: Metadata updates propagated to all grouped lines&lt;br /&gt;
* &#039;&#039;&#039;Accounting integration&#039;&#039;&#039;: Standard line generation preserving native booking logic&lt;br /&gt;
&lt;br /&gt;
==Administration Interface==&lt;br /&gt;
* &#039;&#039;&#039;Setup tab&#039;&#039;&#039;: Prerequisites explanation, extrafield documentation, native settings link&lt;br /&gt;
* &#039;&#039;&#039;About tab&#039;&#039;&#039;: Module metadata, version info, editor contact&lt;br /&gt;
* &#039;&#039;&#039;Changelog tab&#039;&#039;&#039;: Version history from &amp;lt;code&amp;gt;ChangeLog.md&amp;lt;/code&amp;gt; with markdown rendering&lt;br /&gt;
* &#039;&#039;&#039;Dependency checks&#039;&#039;&#039;: Core expense report module validation&lt;br /&gt;
&lt;br /&gt;
=API Endpoints=&lt;br /&gt;
&lt;br /&gt;
==AJAX Interface (&amp;lt;code&amp;gt;ajax/expensereport_matrix.php&amp;lt;/code&amp;gt;)==&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;get_state&amp;lt;/code&amp;gt;&#039;&#039;&#039;: Load existing line groups with VAT rate breakdown&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;save_group&amp;lt;/code&amp;gt;&#039;&#039;&#039;: Create/update line group with metadata and VAT amounts&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;delete_group&amp;lt;/code&amp;gt;&#039;&#039;&#039;: Remove line group and all associated lines&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;upload_piece&amp;lt;/code&amp;gt;&#039;&#039;&#039;: ECM file upload with progress tracking&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;code&amp;gt;get_vat_rates&amp;lt;/code&amp;gt;&#039;&#039;&#039;: Dynamic VAT rate list for company configuration&lt;br /&gt;
&lt;br /&gt;
==Security Model==&lt;br /&gt;
* &#039;&#039;&#039;Token validation&#039;&#039;&#039;: CSRF protection on all AJAX endpoints&lt;br /&gt;
* &#039;&#039;&#039;Permission checks&#039;&#039;&#039;: &amp;lt;code&amp;gt;expensereport-&amp;gt;creer&amp;lt;/code&amp;gt; validation per operation&lt;br /&gt;
* &#039;&#039;&#039;Entity filtering&#039;&#039;&#039;: MultiCompany support with proper data isolation&lt;br /&gt;
* &#039;&#039;&#039;Status validation&#039;&#039;&#039;: Draft/refused state enforcement for edit operations&lt;br /&gt;
&lt;br /&gt;
=Installation and Configuration=&lt;br /&gt;
&lt;br /&gt;
==Technical Requirements==&lt;br /&gt;
* &#039;&#039;&#039;Dolibarr version&#039;&#039;&#039;: 19.0+ (see &amp;lt;code&amp;gt;modTvaNdf.class.php&amp;lt;/code&amp;gt; for exact version)&lt;br /&gt;
* &#039;&#039;&#039;PHP version&#039;&#039;&#039;: 7.1+ with standard extensions&lt;br /&gt;
* &#039;&#039;&#039;Database&#039;&#039;&#039;: Compatible with all Dolibarr-supported databases&lt;br /&gt;
* &#039;&#039;&#039;Browser&#039;&#039;&#039;: JavaScript-enabled for matrix UI functionality&lt;br /&gt;
* &#039;&#039;&#039;Dependencies&#039;&#039;&#039;: Core expense report module mandatory&lt;br /&gt;
&lt;br /&gt;
==Installation Process==&lt;br /&gt;
# Download &amp;lt;code&amp;gt;module_tvandf-x.y.z.zip&amp;lt;/code&amp;gt; (ZIP root = single &amp;lt;code&amp;gt;tvandf/&amp;lt;/code&amp;gt; directory)&lt;br /&gt;
# &#039;&#039;&#039;Home → Setup → Modules → Deploy/Import external module&#039;&#039;&#039;&lt;br /&gt;
# Activate &#039;&#039;&#039;TVANDF&#039;&#039;&#039;/&#039;TvaNdf&#039; module&lt;br /&gt;
# Verify extrafield creation: &#039;&#039;&#039;Setup → Dictionaries → Expense report lines - Extra fields&#039;&#039;&#039;&lt;br /&gt;
# Configure VAT rates in &#039;&#039;&#039;Setup → Dictionaries → VAT&#039;&#039;&#039; for proper matrix columns&lt;br /&gt;
&lt;br /&gt;
==Configuration Notes==&lt;br /&gt;
* &#039;&#039;&#039;Extrafield preservation&#039;&#039;&#039;: Do not delete &amp;lt;code&amp;gt;tvandf_line_group&amp;lt;/code&amp;gt; while using matrix features&lt;br /&gt;
* &#039;&#039;&#039;VAT dictionary dependency&#039;&#039;&#039;: Active rates determine available matrix columns&lt;br /&gt;
* &#039;&#039;&#039;ECM configuration&#039;&#039;&#039;: Standard Dolibarr document management settings apply&lt;br /&gt;
* &#039;&#039;&#039;Permission setup&#039;&#039;&#039;: Standard expense report rights control matrix access&lt;br /&gt;
&lt;br /&gt;
=Developer Information=&lt;br /&gt;
&lt;br /&gt;
==Module Structure==&lt;br /&gt;
* &#039;&#039;&#039;Core descriptor&#039;&#039;&#039;: &amp;lt;code&amp;gt;core/modules/modTvaNdf.class.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Hook implementation&#039;&#039;&#039;: &amp;lt;code&amp;gt;class/actions_tvandf.class.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Matrix logic&#039;&#039;&#039;: &amp;lt;code&amp;gt;lib/tvandf_matrix.lib.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;AJAX handler&#039;&#039;&#039;: &amp;lt;code&amp;gt;ajax/expensereport_matrix.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Frontend assets&#039;&#039;&#039;: &amp;lt;code&amp;gt;js/expensereport_matrix.js&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;css/expensereport_matrix.css&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Customization Points==&lt;br /&gt;
* &#039;&#039;&#039;VAT rate filtering&#039;&#039;&#039;: Modify &amp;lt;code&amp;gt;tvandf_matrix_list_vat_rates()&amp;lt;/code&amp;gt; for custom rate logic&lt;br /&gt;
* &#039;&#039;&#039;Extrafield naming&#039;&#039;&#039;: &amp;lt;code&amp;gt;TVANDF_EXTRA_LINE_GROUP&amp;lt;/code&amp;gt; constant in &amp;lt;code&amp;gt;lib/tvandf.lib.php&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;UI labels&#039;&#039;&#039;: Translation files in &amp;lt;code&amp;gt;langs/*/tvandf.lang&amp;lt;/code&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Matrix layout&#039;&#039;&#039;: CSS customization in &amp;lt;code&amp;gt;css/expensereport_matrix.css&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Extension Opportunities==&lt;br /&gt;
* &#039;&#039;&#039;Additional grouping fields&#039;&#039;&#039;: Extend extrafield structure for complex scenarios&lt;br /&gt;
* &#039;&#039;&#039;Custom validation rules&#039;&#039;&#039;: Hook into save logic for business-specific constraints&lt;br /&gt;
* &#039;&#039;&#039;Reporting integration&#039;&#039;&#039;: Matrix data available through standard Dolibarr line queries&lt;br /&gt;
* &#039;&#039;&#039;API expansion&#039;&#039;&#039;: Additional endpoints for external integration needs&lt;br /&gt;
&lt;br /&gt;
=Compatibility and Limitations=&lt;br /&gt;
&lt;br /&gt;
==Dolibarr Compatibility==&lt;br /&gt;
* &#039;&#039;&#039;Core versions&#039;&#039;&#039;: Tested on Dolibarr 19.0 through 21.x series&lt;br /&gt;
* &#039;&#039;&#039;MultiCompany&#039;&#039;&#039;: Full support with entity-based data isolation&lt;br /&gt;
* &#039;&#039;&#039;Accounting&#039;&#039;&#039;: Compatible with all standard accounting export formats&lt;br /&gt;
* &#039;&#039;&#039;Themes&#039;&#039;&#039;: Responsive design adapts to standard Dolibarr themes&lt;br /&gt;
&lt;br /&gt;
==Known Limitations==&lt;br /&gt;
* &#039;&#039;&#039;JavaScript dependency&#039;&#039;&#039;: Matrix UI requires enabled JavaScript&lt;br /&gt;
* &#039;&#039;&#039;Browser compatibility&#039;&#039;&#039;: Modern browsers required for optimal experience&lt;br /&gt;
* &#039;&#039;&#039;Large VAT sets&#039;&#039;&#039;: Performance considerations with 15+ active VAT rates&lt;br /&gt;
* &#039;&#039;&#039;Mobile optimization&#039;&#039;&#039;: Matrix interface optimized for desktop/tablet use&lt;br /&gt;
&lt;br /&gt;
=Support and Development=&lt;br /&gt;
&lt;br /&gt;
==Professional Services==&lt;br /&gt;
* &#039;&#039;&#039;Installation assistance&#039;&#039;&#039;: Configuration and deployment support&lt;br /&gt;
* &#039;&#039;&#039;Custom development&#039;&#039;&#039;: Module extensions and integrations&lt;br /&gt;
* &#039;&#039;&#039;Training services&#039;&#039;&#039;: User and administrator training programs&lt;br /&gt;
* &#039;&#039;&#039;Technical support&#039;&#039;&#039;: Issue resolution and optimization guidance&lt;br /&gt;
&lt;br /&gt;
==Community Resources==&lt;br /&gt;
* &#039;&#039;&#039;Documentation&#039;&#039;&#039;: Complete technical documentation in module &amp;lt;code&amp;gt;doc/&amp;lt;/code&amp;gt; directory  &lt;br /&gt;
* &#039;&#039;&#039;Issue tracking&#039;&#039;&#039;: Report bugs and feature requests to module maintainer&lt;br /&gt;
* &#039;&#039;&#039;Version updates&#039;&#039;&#039;: Regular releases with Dolibarr compatibility updates&lt;br /&gt;
* &#039;&#039;&#039;Code contributions&#039;&#039;&#039;: Community patches and improvements welcome&lt;br /&gt;
&lt;br /&gt;
==Contact Information==&lt;br /&gt;
* &#039;&#039;&#039;Developer&#039;&#039;&#039;: Alex BORDARAUD - Lysis&lt;br /&gt;
* &#039;&#039;&#039;Website&#039;&#039;&#039;: https://lysis.net&lt;br /&gt;
* &#039;&#039;&#039;License&#039;&#039;&#039;: GPLv3+&lt;br /&gt;
* &#039;&#039;&#039;Module ID&#039;&#039;&#039;: 142804&lt;br /&gt;
&lt;br /&gt;
=Related Modules and Integration=&lt;br /&gt;
&lt;br /&gt;
==Dolibarr Core Integration==&lt;br /&gt;
* &#039;&#039;&#039;[[ModuleExpensesReports]]&#039;&#039;&#039;: Core expense report functionality&lt;br /&gt;
* &#039;&#039;&#039;[[ModuleECM]]&#039;&#039;&#039;: Document management system integration  &lt;br /&gt;
* &#039;&#039;&#039;[[ModuleMultiCompany]]&#039;&#039;&#039;: Multi-entity support compatibility&lt;br /&gt;
* &#039;&#039;&#039;[[ModuleAccounting]]&#039;&#039;&#039;: Accounting export and journal integration&lt;br /&gt;
&lt;br /&gt;
==Complementary Modules==&lt;br /&gt;
* VAT management modules for enhanced tax handling&lt;br /&gt;
* Project module integration for expense allocation&lt;br /&gt;
* HR modules for approval workflow enhancement&lt;br /&gt;
* Reporting modules for advanced expense analytics&lt;br /&gt;
&lt;br /&gt;
=Technical Reference=&lt;br /&gt;
&lt;br /&gt;
==Database Schema Extensions==&lt;br /&gt;
```sql&lt;br /&gt;
-- Extrafield on expensereport_det table&lt;br /&gt;
ALTER TABLE llx_expensereport_det_extrafields ADD COLUMN tvandf_line_group varchar(255);&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
==Key PHP Classes==&lt;br /&gt;
* &amp;lt;code&amp;gt;ActionsTvandf&amp;lt;/code&amp;gt;: Main hook implementation class&lt;br /&gt;
* &amp;lt;code&amp;gt;ExpenseReportLine&amp;lt;/code&amp;gt;: Native Dolibarr line object (preserved)&lt;br /&gt;
* &amp;lt;code&amp;gt;ExtraFields&amp;lt;/code&amp;gt;: Dolibarr extrafield management (extended)&lt;br /&gt;
&lt;br /&gt;
==JavaScript API==&lt;br /&gt;
* Matrix initialization: &amp;lt;code&amp;gt;TvandfMatrix.init()&amp;lt;/code&amp;gt;&lt;br /&gt;
* Group operations: &amp;lt;code&amp;gt;TvandfMatrix.saveGroup()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;TvandfMatrix.deleteGroup()&amp;lt;/code&amp;gt;&lt;br /&gt;
* File upload: &amp;lt;code&amp;gt;TvandfMatrix.uploadFile()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configuration Constants==&lt;br /&gt;
* &amp;lt;code&amp;gt;TVANDF_EXTRA_LINE_GROUP&amp;lt;/code&amp;gt;: Extrafield name constant&lt;br /&gt;
* Module configuration accessible via &amp;lt;code&amp;gt;$conf-&amp;gt;tvandf&amp;lt;/code&amp;gt; global&lt;br /&gt;
&lt;br /&gt;
=Version History=&lt;br /&gt;
&lt;br /&gt;
See &amp;lt;code&amp;gt;ChangeLog.md&amp;lt;/code&amp;gt; in module root for detailed version history and upgrade notes.&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
&lt;br /&gt;
* [[List_of_modules_id|Dolibarr Module ID Registry]]&lt;br /&gt;
* [[ModuleExpensesReports|Core Expense Reports Documentation]]&lt;br /&gt;
* [[Hooks|Dolibarr Hook System Documentation]]&lt;br /&gt;
* [[ExtraFields|Dolibarr ExtraFields System]]&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=66070</id>
		<title>Module PostmarkApp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=66070"/>
		<updated>2026-05-04T06:42:01Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: Modification de la version du module et nouvelles fonctionnalités&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Complementary modules]]&lt;br /&gt;
[[Category:PostmarkApp]]&lt;br /&gt;
{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocUser}}&lt;br /&gt;
=Informations=&lt;br /&gt;
{{TemplateModuleInfo&lt;br /&gt;
|modulename=PostmarkApp&lt;br /&gt;
|editor=Alex BORDARAUD - Lysis https://lysis.net&lt;br /&gt;
|webbuy=&lt;br /&gt;
|status=stable&lt;br /&gt;
|version=1.5.27&lt;br /&gt;
|minversion=&lt;br /&gt;
|maxversion=&lt;br /&gt;
|note=&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PostmarkApp&#039;&#039;&#039; is a professional Dolibarr module that integrates [https://postmarkapp.com Postmark], a transactional email service, to replace Dolibarr&#039;s native email sending system. It provides complete email traceability, real-time event tracking, and seamless integration with Dolibarr&#039;s Agenda module.&lt;br /&gt;
&lt;br /&gt;
=Description=&lt;br /&gt;
&lt;br /&gt;
==English==&lt;br /&gt;
&lt;br /&gt;
PostmarkApp transforms your email communications in Dolibarr by providing enterprise-grade email delivery and tracking. Unlike standard SMTP, Postmark ensures high deliverability rates and provides detailed analytics on every email sent.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Key Benefits:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;100% Email Traceability&#039;&#039;&#039;: Track every email from sending to delivery, opening, and link clicks&lt;br /&gt;
*&#039;&#039;&#039;Professional Delivery&#039;&#039;&#039;: Postmark&#039;s infrastructure ensures 99.9% deliverability&lt;br /&gt;
*&#039;&#039;&#039;Real-time Notifications&#039;&#039;&#039;: Instant webhook notifications for all email events&lt;br /&gt;
*&#039;&#039;&#039;Complete Integration&#039;&#039;&#039;: All events automatically logged in Dolibarr&#039;s Agenda&lt;br /&gt;
*&#039;&#039;&#039;Multi-Entity Support&#039;&#039;&#039;: Full compatibility with Dolibarr&#039;s MultiCompany module&lt;br /&gt;
*&#039;&#039;&#039;User Ownership&#039;&#039;&#039;: Events are owned by the user who sent the email for proper notifications&lt;br /&gt;
*&#039;&#039;&#039;REST API (Dolibarr)&#039;&#039;&#039;: Send emails externally with &amp;lt;code&amp;gt;DOLAPIKEY&amp;lt;/code&amp;gt;; optional attachments (file path or base64); link to third parties and objects; automatic Agenda event (&amp;lt;code&amp;gt;POSTMARK_SENT&amp;lt;/code&amp;gt;); configurable default sender (user vs company)&lt;br /&gt;
&lt;br /&gt;
==Français==&lt;br /&gt;
&lt;br /&gt;
PostmarkApp transforme vos communications email dans Dolibarr en fournissant une livraison et un suivi d&#039;emails de niveau entreprise. Contrairement au SMTP standard, Postmark garantit des taux de délivrabilité élevés et fournit des analyses détaillées sur chaque email envoyé.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Avantages principaux&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Traçabilité 100% des emails&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Suivez chaque email de l&#039;envoi à la livraison, l&#039;ouverture et les clics&lt;br /&gt;
*&#039;&#039;&#039;Livraison professionnelle&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: L&#039;infrastructure Postmark garantit 99,9% de délivrabilité&lt;br /&gt;
*&#039;&#039;&#039;Notifications en temps réel&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Notifications webhook instantanées pour tous les événements email&lt;br /&gt;
*&#039;&#039;&#039;Intégration complète&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Tous les événements automatiquement enregistrés dans l&#039;Agenda Dolibarr&lt;br /&gt;
*&#039;&#039;&#039;Support Multi-Entités&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Compatibilité complète avec le module MultiCompany de Dolibarr&lt;br /&gt;
*&#039;&#039;&#039;Propriété utilisateur&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Les événements appartiennent à l&#039;utilisateur qui a envoyé l&#039;email pour des notifications correctes&lt;br /&gt;
*&#039;&#039;&#039;API REST (Dolibarr)&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Envoi depuis l’extérieur avec &amp;lt;code&amp;gt;DOLAPIKEY&amp;lt;/code&amp;gt;; pièces jointes (chemin serveur ou base64); liaison tiers et objet; événement agenda automatique (&amp;lt;code&amp;gt;POSTMARK_SENT&amp;lt;/code&amp;gt;); expéditeur par défaut réglable : compte utilisateur ou société Dolibarr (mysoc)&lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
&lt;br /&gt;
==Core Features==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Email Sending via Postmark API&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Intercepts all Dolibarr email sending via hooks&lt;br /&gt;
  * Sends emails through Postmark&#039;s REST API&lt;br /&gt;
  * Supports HTML and plain text emails (auto-converts if needed)&lt;br /&gt;
  * Handles attachments, CC, BCC, Reply-To headers&lt;br /&gt;
  * Supports multiple message streams (transactional, marketing)&lt;br /&gt;
  * Intercepts sends via Dolibarr hooks (&amp;lt;code&amp;gt;sendMail&amp;lt;/code&amp;gt; on contexts &amp;lt;code&amp;gt;mail&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sendmail&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt;) and substitution of &amp;lt;code&amp;gt;dol_mail&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;postmarkapp_sendmail&amp;lt;/code&amp;gt;) so code paths using &amp;lt;code&amp;gt;dol_mail&amp;lt;/code&amp;gt; can also route through Postmark when the replacement mailer option is enabled&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;REST API (native Dolibarr)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Endpoint &amp;lt;code&amp;gt;POST /api/index.php/postmarkappapi/send-email&amp;lt;/code&amp;gt; (HTTPS)&lt;br /&gt;
  * Authentication: HTTP header &amp;lt;code&amp;gt;DOLAPIKEY&amp;lt;/code&amp;gt; (user API key)&lt;br /&gt;
  * Required permission &amp;lt;code&amp;gt;postmarkapp-&amp;gt;api&amp;lt;/code&amp;gt; (admins implicitly allowed unless restricted by your Dolibarr configuration)&lt;br /&gt;
  * Body or query JSON: &amp;lt;code&amp;gt;to&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;subject&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt;; optional &amp;lt;code&amp;gt;cc&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;bcc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_soc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt; + &amp;lt;code&amp;gt;element_type&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;attachments[]&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;file_path&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;base64&amp;lt;/code&amp;gt;)&lt;br /&gt;
  * &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt; (optional): &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; (From = API user email, fallback to company if missing) or &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt; (From = Dolibarr main company « mysoc » email). If omitted, constant &amp;lt;code&amp;gt;POSTMARKAPP_DEFAULT_FROM_MODE&amp;lt;/code&amp;gt; applies. No fallback to generic &amp;lt;code&amp;gt;MAIN_MAIL_DEFAULT_FROM&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;noreply&amp;lt;/code&amp;gt;: HTTP 400 if no valid sender&lt;br /&gt;
  * Response fields include &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;from_source&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;company_fallback&amp;lt;/code&amp;gt;)&lt;br /&gt;
  * Localization of generated Agenda labels follows &amp;lt;code&amp;gt;Content-Language&amp;lt;/code&amp;gt; then &amp;lt;code&amp;gt;Accept-Language&amp;lt;/code&amp;gt;&lt;br /&gt;
  * Full reference: &amp;lt;code&amp;gt;API.md&amp;lt;/code&amp;gt; in the module directory&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Real-time Event Tracking&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * &#039;&#039;&#039;Sent&#039;&#039;&#039;: Email successfully sent via Postmark&lt;br /&gt;
  * &#039;&#039;&#039;Delivered&#039;&#039;&#039;: Email delivered to recipient&#039;s mail server&lt;br /&gt;
  * &#039;&#039;&#039;Opened&#039;&#039;&#039;: Recipient opened the email (first open only)&lt;br /&gt;
  * &#039;&#039;&#039;Clicked&#039;&#039;&#039;: Recipient clicked a link in the email&lt;br /&gt;
  * &#039;&#039;&#039;Bounced&#039;&#039;&#039;: Email delivery failed (hard/soft bounce)&lt;br /&gt;
  * &#039;&#039;&#039;Spam Complaint&#039;&#039;&#039;: Recipient marked email as spam&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr Integration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * All events automatically created in Dolibarr&#039;s Agenda module&lt;br /&gt;
  * Events linked to original Dolibarr objects (invoices, proposals, orders, etc.)&lt;br /&gt;
  * Events linked to third parties and contacts&lt;br /&gt;
  * Parent-child relationships between events (Sent → Delivery → Open → Click)&lt;br /&gt;
  * User ownership: events belong to the user who sent the email&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Automatic Triggers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Six automatic triggers registered in Dolibarr&#039;s Agenda&lt;br /&gt;
  * Automatically enabled on module activation&lt;br /&gt;
  * Configurable in Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&lt;br /&gt;
  * Can trigger custom workflows based on email events&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Multi-Entity Support (MultiCompany)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Full compatibility with Dolibarr&#039;s MultiCompany module&lt;br /&gt;
  * Entity field in database for data isolation&lt;br /&gt;
  * Configurable sharing between entities&lt;br /&gt;
  * Automatic entity assignment based on email sender&#039;s entity&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Comprehensive Event Management&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Dedicated events list page with advanced filters&lt;br /&gt;
  * Filter by date, event type, recipient, subject, third party, contact, linked object, message ID&lt;br /&gt;
  * Search by object reference&lt;br /&gt;
  * Direct links to related Dolibarr objects&lt;br /&gt;
  * Link to ActionComm events&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Webhook Management&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Automatic webhook creation via Postmark API&lt;br /&gt;
  * Manual webhook configuration support&lt;br /&gt;
  * Built-in webhook testing tools&lt;br /&gt;
  * Webhook signature validation (optional)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Multi-language Support&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Available in 7 languages: French, English, German, Spanish, Italian, Portuguese, Dutch&lt;br /&gt;
  * All interface elements translated&lt;br /&gt;
  * Event labels and descriptions translated&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Administration pages&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Main setup: &#039;&#039;&#039;Setup → Modules → PostmarkApp&#039;&#039;&#039; (&amp;lt;code&amp;gt;admin/setup.php&amp;lt;/code&amp;gt;)&lt;br /&gt;
  * Tab &#039;&#039;&#039;About&#039;&#039;&#039; (&amp;lt;code&amp;gt;admin/about.php&amp;lt;/code&amp;gt;): module metadata, README excerpt, contextual help on API sender rules and checking that rich-text help renders as HTML (not raw tags)&lt;br /&gt;
  * Tab &#039;&#039;&#039;Changelog&#039;&#039;&#039; (&amp;lt;code&amp;gt;admin/changelog.php&amp;lt;/code&amp;gt;): rendered &amp;lt;code&amp;gt;ChangeLog.md&amp;lt;/code&amp;gt; (version history)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
===System Requirements===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr&#039;&#039;&#039;: Version 19.0 or higher&lt;br /&gt;
*&#039;&#039;&#039;PHP&#039;&#039;&#039;: Version 7.1 or higher&lt;br /&gt;
*&#039;&#039;&#039;PHP Extensions&#039;&#039;&#039;: cURL (required for API calls)&lt;br /&gt;
*&#039;&#039;&#039;Postmark Account&#039;&#039;&#039;: Active account with at least one server&lt;br /&gt;
*&#039;&#039;&#039;Server API Token&#039;&#039;&#039;: From Postmark dashboard&lt;br /&gt;
*&#039;&#039;&#039;Agenda Module&#039;&#039;&#039;: Must be enabled (mandatory dependency)&lt;br /&gt;
*&#039;&#039;&#039;REST API users&#039;&#039;&#039;: Grant permission &amp;lt;code&amp;gt;postmarkapp-&amp;gt;api&amp;lt;/code&amp;gt; and assign a Dolibarr API key for each integration account&lt;br /&gt;
&lt;br /&gt;
==Postmark Requirements==&lt;br /&gt;
&lt;br /&gt;
*Verified Sender Signatures for the &amp;quot;From&amp;quot; email addresses&lt;br /&gt;
*Server API Token (found in Postmark &amp;gt; Servers &amp;gt; API Tokens)&lt;br /&gt;
*Webhook URL accessible from internet (for event tracking)&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Installation==&lt;br /&gt;
&lt;br /&gt;
#Download the module package &amp;lt;code&amp;gt;module_postmarkapp-x.y.z.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
#Extract to &amp;lt;code&amp;gt;htdocs/custom/postmarkapp/&amp;lt;/code&amp;gt; directory&lt;br /&gt;
#Go to &#039;&#039;&#039;Home &amp;gt; Setup &amp;gt; Modules/Applications&#039;&#039;&#039;&lt;br /&gt;
#Search for &amp;quot;PostmarkApp&amp;quot; in the module list&lt;br /&gt;
#Click &#039;&#039;&#039;Enable&#039;&#039;&#039; to activate the module&lt;br /&gt;
#The module will automatically:&lt;br /&gt;
&lt;br /&gt;
  * Create the &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
  * Register automatic triggers in Agenda&lt;br /&gt;
  * Configure MultiCompany sharing (if MultiCompany module is enabled)&lt;br /&gt;
&lt;br /&gt;
#Configure the module in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; PostmarkApp &amp;gt; Settings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Post-Installation==&lt;br /&gt;
&lt;br /&gt;
After installation, verify:&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table exists in your database&lt;br /&gt;
*The Agenda module is enabled&lt;br /&gt;
*Automatic triggers are visible in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
*For REST integrations: &#039;&#039;&#039;Users → Permissions&#039;&#039;&#039; includes &amp;lt;code&amp;gt;postmarkapp-&amp;gt;api&amp;lt;/code&amp;gt; where needed and API keys assigned&lt;br /&gt;
&lt;br /&gt;
===Step 1: Server API Token===&lt;br /&gt;
&lt;br /&gt;
The Server API Token is the primary authentication method for Postmark.&lt;br /&gt;
&lt;br /&gt;
#Log in to your Postmark account at https://postmarkapp.com&lt;br /&gt;
#Navigate to &#039;&#039;&#039;Servers&#039;&#039;&#039; and select your server&lt;br /&gt;
#Go to the &#039;&#039;&#039;API Tokens&#039;&#039;&#039; tab&lt;br /&gt;
#Copy the &#039;&#039;&#039;Server API Token&#039;&#039;&#039; (starts with a long alphanumeric string)&lt;br /&gt;
#Paste it in the PostmarkApp configuration page under &amp;quot;Server API Token&amp;quot;&lt;br /&gt;
#Click &#039;&#039;&#039;Validate&#039;&#039;&#039; to test the connection&lt;br /&gt;
#If successful, you&#039;ll see a green confirmation message&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Security Note:&#039;&#039;&#039; The token is stored encrypted in Dolibarr&#039;s constants table.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Message Stream&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Select the Postmark message stream to use&lt;br /&gt;
  * Default: &amp;quot;outbound&amp;quot; (transactional emails)&lt;br /&gt;
  * Alternative: &amp;quot;broadcast&amp;quot; (marketing emails)&lt;br /&gt;
  * Streams are automatically loaded from your Postmark account&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Track Opens&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable/disable open tracking&lt;br /&gt;
  * When enabled, Postmark tracks when emails are opened&lt;br /&gt;
  * Only the first open is tracked (PostFirstOpenOnly)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Track Clicks&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable/disable click tracking&lt;br /&gt;
  * &#039;&#039;&#039;Requires HTML emails&#039;&#039;&#039; - plain text emails cannot track clicks&lt;br /&gt;
  * When enabled, all links in emails are rewritten by Postmark for tracking&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Replace Dolibarr Mailer&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable to route ALL Dolibarr emails through Postmark&lt;br /&gt;
  * When disabled, Dolibarr uses its native email system&lt;br /&gt;
  * Recommended: Keep enabled for consistent tracking&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;API default sender (From)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Constant &amp;lt;code&amp;gt;POSTMARKAPP_DEFAULT_FROM_MODE&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; (default From = authenticated API user email) or &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt; (default From = main company « mysoc » email from &#039;&#039;&#039;Home → Setup → Company/Organization&#039;&#039;&#039;).&lt;br /&gt;
  * For &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt; mode en production: the company email must be a verified Sender Signature in Postmark.&lt;br /&gt;
  * Constant &amp;lt;code&amp;gt;POSTMARKAPP_SOCIETE_FROM_CONFIRMED&amp;lt;/code&amp;gt; + checkbox « Postmark confirmation » on the setup page: the administrator must explicitly confirm that the company From is authorized on Postmark.&lt;br /&gt;
  * Saving in &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt; mode is &#039;&#039;&#039;refused&#039;&#039;&#039; if the mysoc email is missing or syntactically invalid.&lt;br /&gt;
  * Test email action uses the configured mode so verification matches production behaviour.&lt;br /&gt;
  * Per-request API override remains possible via &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt; (see &#039;&#039;&#039;REST API&#039;&#039;&#039; above).&lt;br /&gt;
&lt;br /&gt;
===Step 3: Webhook Configuration (Optional but Recommended)===&lt;br /&gt;
&lt;br /&gt;
Webhooks allow Postmark to notify Dolibarr in real-time when email events occur.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Ensure your Server API Token is validated&lt;br /&gt;
#Click &#039;&#039;&#039;Create Webhook Automatically&#039;&#039;&#039;&lt;br /&gt;
#The module will:&lt;br /&gt;
&lt;br /&gt;
  * Generate the webhook URL (format: &amp;lt;code&amp;gt;https://yourdomain.com/dolibarr/custom/postmarkapp/webhook.php&amp;lt;/code&amp;gt;)&lt;br /&gt;
  * Create the webhook in Postmark via API&lt;br /&gt;
  * Configure it to listen for: Delivery, Open (First Open Only), Click, Bounce, Spam Complaint&lt;br /&gt;
&lt;br /&gt;
#You&#039;ll see a confirmation message with the webhook ID&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manual Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Copy the webhook URL displayed in the configuration page&lt;br /&gt;
#Log in to Postmark dashboard&lt;br /&gt;
#Go to &#039;&#039;&#039;Servers &amp;gt; Your Server &amp;gt; Webhooks&#039;&#039;&#039;&lt;br /&gt;
#Click &#039;&#039;&#039;Add Webhook&#039;&#039;&#039;&lt;br /&gt;
#Paste the URL&lt;br /&gt;
#Enable the following triggers:&lt;br /&gt;
&lt;br /&gt;
  * Delivery&lt;br /&gt;
  * Open (select &amp;quot;First Open Only&amp;quot;)&lt;br /&gt;
  * Click&lt;br /&gt;
  * Bounce&lt;br /&gt;
  * Spam Complaint&lt;br /&gt;
&lt;br /&gt;
#Save the webhook&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing Webhooks:&#039;&#039;&#039;&lt;br /&gt;
The configuration page includes test buttons to simulate webhook events:&lt;br /&gt;
&lt;br /&gt;
*Test Delivery&lt;br /&gt;
*Test Open&lt;br /&gt;
*Test Click&lt;br /&gt;
*Test Bounce&lt;br /&gt;
&lt;br /&gt;
These send test payloads to your webhook endpoint for verification.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Testing===&lt;br /&gt;
&lt;br /&gt;
#Click &#039;&#039;&#039;Test Connection&#039;&#039;&#039; to verify API connectivity&lt;br /&gt;
#Click &#039;&#039;&#039;Send Test Email&#039;&#039;&#039; to send a test email to your logged-in user&#039;s email address&lt;br /&gt;
#The test email includes:&lt;br /&gt;
&lt;br /&gt;
  * HTML and plain text versions&lt;br /&gt;
  * A trackable link to test click tracking&lt;br /&gt;
  * Metadata for webhook linking&lt;br /&gt;
&lt;br /&gt;
#Check your email inbox and verify delivery&lt;br /&gt;
#Use the webhook test buttons to verify event processing&lt;br /&gt;
&lt;br /&gt;
=MultiCompany Compatibility=&lt;br /&gt;
&lt;br /&gt;
PostmarkApp is fully compatible with Dolibarr&#039;s MultiCompany module.&lt;br /&gt;
&lt;br /&gt;
==How It Works==&lt;br /&gt;
&lt;br /&gt;
*Each email event is stored with an &amp;lt;code&amp;gt;entity&amp;lt;/code&amp;gt; field&lt;br /&gt;
*By default, events are isolated per entity (entity = current entity)&lt;br /&gt;
*Events can be shared between entities if MultiCompany sharing is enabled&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
#Enable the MultiCompany module in Dolibarr&lt;br /&gt;
#Go to &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; MultiCompany &amp;gt; Options&#039;&#039;&#039;&lt;br /&gt;
#Find the &amp;quot;PostmarkApp Events&amp;quot; sharing option&lt;br /&gt;
#Enable/disable sharing as needed&lt;br /&gt;
&lt;br /&gt;
==Sharing Behavior==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Sharing Disabled&#039;&#039;&#039;: Each entity only sees its own email events&lt;br /&gt;
*&#039;&#039;&#039;Sharing Enabled&#039;&#039;&#039;: Events can be shared between entities (entity IN (0, entity1, entity2, ...))&lt;br /&gt;
*The webhook automatically uses the entity from the original &amp;quot;Sent&amp;quot; event&lt;br /&gt;
&lt;br /&gt;
==Entity Assignment==&lt;br /&gt;
&lt;br /&gt;
*When an email is sent, the event is assigned to the current entity (&amp;lt;code&amp;gt;$conf-&amp;gt;entity&amp;lt;/code&amp;gt;)&lt;br /&gt;
*Webhook events inherit the entity from the original &amp;quot;Sent&amp;quot; event&lt;br /&gt;
*This ensures proper data isolation and sharing&lt;br /&gt;
&lt;br /&gt;
=Technical Architecture=&lt;br /&gt;
&lt;br /&gt;
==Module Structure==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
postmarkapp/&lt;br /&gt;
├── core/&lt;br /&gt;
│   ├── modules/&lt;br /&gt;
│   │   └── modPostmarkApp.class.php    # Module descriptor, menus, hooks, constants&lt;br /&gt;
│   └── substitutions/&lt;br /&gt;
│       └── postmarkapp.lib.php         # dol_mail → postmarkapp_sendmail&lt;br /&gt;
├── class/&lt;br /&gt;
│   ├── actions_postmarkapp.class.php   # Hook handlers (sendMail, mail_begin/end)&lt;br /&gt;
│   └── api_postmarkapp.class.php      # Dolibarr REST API (send-email)&lt;br /&gt;
├── lib/&lt;br /&gt;
│   ├── postmarkapp.lib.php            # Admin tabs, sender helpers (mysoc validation)&lt;br /&gt;
│   └── class/&lt;br /&gt;
│       ├── postmarkappmail.class.php   # Postmark API wrapper&lt;br /&gt;
│       └── lysistech.class.php         # Optional remote last-version URL helper&lt;br /&gt;
├── admin/&lt;br /&gt;
│   ├── setup.php                       # Configuration&lt;br /&gt;
│   ├── about.php                       # About + embedded help&lt;br /&gt;
│   └── changelog.php                   # Rendered ChangeLog.md&lt;br /&gt;
├── events.php                           # Events list page&lt;br /&gt;
├── webhook.php                          # Webhook endpoint&lt;br /&gt;
├── API.md                               # Detailed REST documentation&lt;br /&gt;
├── ChangeLog.md&lt;br /&gt;
└── langs/&lt;br /&gt;
    └── [lang]/&lt;br /&gt;
        └── postmarkapp.lang             # Translations&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hooks System===&lt;br /&gt;
&lt;br /&gt;
The module uses Dolibarr&#039;s hook system to intercept email sending:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Hook contexts&#039;&#039;&#039; (registered in the module descriptor): &amp;lt;code&amp;gt;mail&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sendmail&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Primary hook&#039;&#039;&#039;: &amp;lt;code&amp;gt;sendMail&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Hook File&#039;&#039;&#039;: &amp;lt;code&amp;gt;class/actions_postmarkapp.class.php&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Hook Method&#039;&#039;&#039;: &amp;lt;code&amp;gt;sendMail($parameters, &amp;amp;$object, &amp;amp;$action, $hookmanager)&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Additional handlers&#039;&#039;&#039;: &amp;lt;code&amp;gt;mail_begin&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mail_end&amp;lt;/code&amp;gt; where applicable for the same contexts&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How It Works:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Dolibarr prepares to send an email via &amp;lt;code&amp;gt;CMailFile&amp;lt;/code&amp;gt;&lt;br /&gt;
#The hook intercepts the email before native sending&lt;br /&gt;
#Extracts email data (to, subject, body, attachments, etc.)&lt;br /&gt;
#Sends email via Postmark API using &amp;lt;code&amp;gt;PostmarkAppMail&amp;lt;/code&amp;gt; class&lt;br /&gt;
#Logs the &amp;quot;Sent&amp;quot; event to database&lt;br /&gt;
#Returns 1 to prevent native Dolibarr email sending&lt;br /&gt;
&lt;br /&gt;
===dol_mail substitution===&lt;br /&gt;
&lt;br /&gt;
When substitution files are loaded, calls to Dolibarr &amp;lt;code&amp;gt;dol_mail()&amp;lt;/code&amp;gt; can be diverted to Postmark via &amp;lt;code&amp;gt;postmarkapp_sendmail()&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;core/substitutions/postmarkapp.lib.php&amp;lt;/code&amp;gt; (same prerequisites: module enabled, valid Server Token, Replace Mailer as required). Behaviour matches other intercepted sends (metadata trackid/objects when supplied in extra parameters).&lt;br /&gt;
&lt;br /&gt;
===API Integration===&lt;br /&gt;
&lt;br /&gt;
The module uses Postmark&#039;s REST API:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Base URL&#039;&#039;&#039;: &amp;lt;code&amp;gt;https://api.postmarkapp.com&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Authentication&#039;&#039;&#039;: &amp;lt;code&amp;gt;X-Postmark-Server-Token&amp;lt;/code&amp;gt; header&lt;br /&gt;
*&#039;&#039;&#039;Endpoints Used&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * &amp;lt;code&amp;gt;POST /email&amp;lt;/code&amp;gt; - Send email&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /server&amp;lt;/code&amp;gt; - Test connection&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /message-streams&amp;lt;/code&amp;gt; - List streams&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /senders&amp;lt;/code&amp;gt; - List sender signatures&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /webhooks&amp;lt;/code&amp;gt; - List webhooks&lt;br /&gt;
  * &amp;lt;code&amp;gt;POST /webhooks&amp;lt;/code&amp;gt; - Create webhook&lt;br /&gt;
&lt;br /&gt;
===Database Schema===&lt;br /&gt;
&lt;br /&gt;
The module creates one custom table: &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Column!!Type!!Null!!Default!!Description&lt;br /&gt;
|-&lt;br /&gt;
|rowid||INTEGER||NO||AUTO_INCREMENT||Primary key&lt;br /&gt;
|-&lt;br /&gt;
|email_id||VARCHAR(255)||NO|| ||Postmark MessageID (unique identifier)&lt;br /&gt;
|-&lt;br /&gt;
|event_type||VARCHAR(50)||NO|| ||Event type (Sent, Delivery, Open, Click, Bounce, SpamComplaint)&lt;br /&gt;
|-&lt;br /&gt;
|recipient||VARCHAR(255)||YES||NULL||Email recipient address&lt;br /&gt;
|-&lt;br /&gt;
|subject||VARCHAR(255)||YES||NULL||Email subject line&lt;br /&gt;
|-&lt;br /&gt;
|fk_soc||INTEGER||YES||NULL||Linked third party ID (llx_societe.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|fk_contact||INTEGER||YES||NULL||Linked contact ID (llx_socpeople.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|fk_element||INTEGER||YES||NULL||Linked element ID (depends on element_type)&lt;br /&gt;
|-&lt;br /&gt;
|element_type||VARCHAR(50)||YES||NULL||Element type (propal, facture, commande, etc.)&lt;br /&gt;
|-&lt;br /&gt;
|fk_user||INTEGER||YES||NULL||User ID who sent the email (for event ownership)&lt;br /&gt;
|-&lt;br /&gt;
|fk_actioncomm||INTEGER||YES||NULL||Linked ActionComm ID (llx_actioncomm.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|event_data||TEXT||YES||NULL||JSON data from webhook (full payload)&lt;br /&gt;
|-&lt;br /&gt;
|entity||INTEGER||NO||1||Entity ID (for MultiCompany)&lt;br /&gt;
|-&lt;br /&gt;
|date_creation||DATETIME||NO|| ||Event timestamp&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Indexes:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_email_id&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;email_id&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_event_type&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;event_type&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_date_creation&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;date_creation&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_soc&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_soc&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_contact&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_contact&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_element&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_user&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_user&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_entity&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;entity&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Supported Object Types===&lt;br /&gt;
&lt;br /&gt;
The module can link email events to various Dolibarr objects:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Object Type!!Description!!Table&lt;br /&gt;
|-&lt;br /&gt;
|propal||Customer Proposal||llx_propal&lt;br /&gt;
|-&lt;br /&gt;
|commande||Customer Order||llx_commande&lt;br /&gt;
|-&lt;br /&gt;
|facture||Customer Invoice||llx_facture&lt;br /&gt;
|-&lt;br /&gt;
|expedition||Shipment||llx_expedition&lt;br /&gt;
|-&lt;br /&gt;
|contrat||Contract||llx_contrat&lt;br /&gt;
|-&lt;br /&gt;
|fichinter||Intervention||llx_fichinter&lt;br /&gt;
|-&lt;br /&gt;
|facture_fourn||Supplier Invoice||llx_facture_fourn&lt;br /&gt;
|-&lt;br /&gt;
|order_supplier||Supplier Order||llx_commande_fournisseur&lt;br /&gt;
|-&lt;br /&gt;
|supplier_proposal||Supplier Proposal||llx_supplier_proposal&lt;br /&gt;
|-&lt;br /&gt;
|project||Project||llx_projet&lt;br /&gt;
|-&lt;br /&gt;
|ticket||Ticket||llx_ticket&lt;br /&gt;
|-&lt;br /&gt;
|member||Member||llx_adherent&lt;br /&gt;
|-&lt;br /&gt;
|reception||Reception||llx_reception&lt;br /&gt;
|-&lt;br /&gt;
|expensereport||Expense Report||llx_expensereport&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Automatic Triggers===&lt;br /&gt;
&lt;br /&gt;
The module registers 6 automatic triggers in Dolibarr&#039;s Agenda system:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Trigger Code!!Label Key!!Description Key!!Rang&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_SENT||PostmarkTriggerSent||PostmarkTriggerSentDesc||50100&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_DELIVERY||PostmarkTriggerDelivery||PostmarkTriggerDeliveryDesc||50101&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_OPEN||PostmarkTriggerOpen||PostmarkTriggerOpenDesc||50102&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_CLICK||PostmarkTriggerClick||PostmarkTriggerClickDesc||50103&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_BOUNCE||PostmarkTriggerBounce||PostmarkTriggerBounceDesc||50104&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_SPAMCOMPLAINT||PostmarkTriggerSpam||PostmarkTriggerSpamDesc||50105&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
These triggers are:&lt;br /&gt;
&lt;br /&gt;
*Automatically registered on module activation&lt;br /&gt;
*Automatically enabled (constants &amp;lt;code&amp;gt;MAIN_AGENDA_ACTIONAUTO_*&amp;lt;/code&amp;gt; set to 1)&lt;br /&gt;
*Configurable in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
*Can trigger custom workflows based on email events&lt;br /&gt;
&lt;br /&gt;
===Permissions===&lt;br /&gt;
&lt;br /&gt;
The module defines &#039;&#039;&#039;three&#039;&#039;&#039; permissions:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;postmarkapp_read&#039;&#039;&#039;: View email events (required for events list page; menu &#039;&#039;&#039;Tools → PostmarkApp events&#039;&#039;&#039; / &amp;lt;code&amp;gt;events.php&amp;lt;/code&amp;gt;)&lt;br /&gt;
*&#039;&#039;&#039;postmarkapp_setup&#039;&#039;&#039;: Configure the module (required for setup page)&lt;br /&gt;
*&#039;&#039;&#039;postmarkapp_api&#039;&#039;&#039;: Call the Dolibarr REST endpoint &amp;lt;code&amp;gt;postmarkappapi/send-email&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Permissions are checked using:&lt;br /&gt;
&amp;lt;code&amp;gt;if ($user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;read&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;if ($user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;setup&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;if ($user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;api&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Remote version check (optional)===&lt;br /&gt;
&lt;br /&gt;
The module descriptor can expose &amp;lt;code&amp;gt;LysisTech::getLastModuleVersionUrl()&amp;lt;/code&amp;gt; so Dolibarr may query a remote « last version » string. Restricted outbound HTTPS environments may log failures unrelated to runtime sending. Define &amp;lt;code&amp;gt;DOLIBARR_LYSIS_SKIP_VERSION_CHECK&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;conf/conf.php&amp;lt;/code&amp;gt; to silence that check when needed (same pattern as other Lysis-published modules).&lt;br /&gt;
&lt;br /&gt;
===Menu===&lt;br /&gt;
&lt;br /&gt;
*Events list appears under &#039;&#039;&#039;Tools&#039;&#039;&#039; (not a dedicated top-level main menu).&lt;br /&gt;
&lt;br /&gt;
===Important module constants===&lt;br /&gt;
&lt;br /&gt;
In addition to token and webhook settings, noteworthy keys include:&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;POSTMARKAPP_DEFAULT_FROM_MODE&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt; — default REST API sender mode&lt;br /&gt;
*&amp;lt;code&amp;gt;POSTMARKAPP_SOCIETE_FROM_CONFIRMED&amp;lt;/code&amp;gt;: admin confirmation flag for Postmark-aligned company sender&lt;br /&gt;
*&amp;lt;code&amp;gt;MAIN_MAIL_FORCE_CONTENT_TYPE_TO_HTML&amp;lt;/code&amp;gt;: enforced by activation when HTML/click-tracking behaviour is desired (already documented above)&lt;br /&gt;
&lt;br /&gt;
===Webhook Processing===&lt;br /&gt;
&lt;br /&gt;
The webhook endpoint (&amp;lt;code&amp;gt;webhook.php&amp;lt;/code&amp;gt;) processes incoming Postmark events:&lt;br /&gt;
&lt;br /&gt;
#Receives POST request from Postmark with JSON payload&lt;br /&gt;
#Validates webhook signature (optional, if configured)&lt;br /&gt;
#Extracts event data (type, recipient, message ID, metadata)&lt;br /&gt;
#Searches for original &amp;quot;Sent&amp;quot; event by MessageID&lt;br /&gt;
#Retrieves linked objects (third party, contact, element) from original event&lt;br /&gt;
#Creates ActionComm event in Dolibarr&#039;s Agenda&lt;br /&gt;
#Sets event ownership to original sender&#039;s user ID&lt;br /&gt;
#Links event to original ActionComm (parent-child relationship)&lt;br /&gt;
#Stores detailed event data in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Returns HTTP 200 to Postmark&lt;br /&gt;
&lt;br /&gt;
===SQL Queries and MultiCompany===&lt;br /&gt;
&lt;br /&gt;
All SQL queries use &amp;lt;code&amp;gt;getEntity()&amp;lt;/code&amp;gt; function for MultiCompany compatibility:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;SELECT * FROM llx_postmarkapp_events WHERE entity IN (getEntity(&#039;postmarkapp_events&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This ensures:&lt;br /&gt;
&lt;br /&gt;
*Data isolation per entity (by default)&lt;br /&gt;
*Data sharing when MultiCompany sharing is enabled&lt;br /&gt;
*Proper entity assignment on insert&lt;br /&gt;
&lt;br /&gt;
==How It Works==&lt;br /&gt;
&lt;br /&gt;
===Email Sending Flow===&lt;br /&gt;
&lt;br /&gt;
#User triggers email sending in Dolibarr (e.g., sending an invoice)&lt;br /&gt;
#Dolibarr prepares &amp;lt;code&amp;gt;CMailFile&amp;lt;/code&amp;gt; object with email data&lt;br /&gt;
#PostmarkApp hook intercepts via &amp;lt;code&amp;gt;sendMail&amp;lt;/code&amp;gt; hook&lt;br /&gt;
#Module extracts:&lt;br /&gt;
&lt;br /&gt;
  * Recipient(s), subject, body (HTML/text), attachments&lt;br /&gt;
  * Linked objects (from &amp;lt;code&amp;gt;trackid&amp;lt;/code&amp;gt; or metadata)&lt;br /&gt;
  * Current user ID (for event ownership)&lt;br /&gt;
&lt;br /&gt;
#Email sent via Postmark API&lt;br /&gt;
#Postmark returns MessageID&lt;br /&gt;
#Module logs &amp;quot;Sent&amp;quot; event to database with:&lt;br /&gt;
&lt;br /&gt;
  * MessageID, recipient, subject, linked objects, user ID, entity&lt;br /&gt;
&lt;br /&gt;
#Returns 1 to prevent native Dolibarr email sending&lt;br /&gt;
&lt;br /&gt;
===Webhook Event Flow===&lt;br /&gt;
&lt;br /&gt;
#Postmark detects email event (delivery, open, click, bounce, spam)&lt;br /&gt;
#Postmark sends POST request to webhook URL with JSON payload&lt;br /&gt;
#Webhook endpoint receives and validates request&lt;br /&gt;
#Searches for original &amp;quot;Sent&amp;quot; event using MessageID&lt;br /&gt;
#Retrieves:&lt;br /&gt;
&lt;br /&gt;
  * Linked objects (third party, contact, element)&lt;br /&gt;
  * User ID who sent the email&lt;br /&gt;
  * Entity ID&lt;br /&gt;
  * Original ActionComm ID&lt;br /&gt;
&lt;br /&gt;
#Creates new ActionComm event:&lt;br /&gt;
&lt;br /&gt;
  * Type: AC_EMAIL&lt;br /&gt;
  * Code: POSTMARK_[EVENT_TYPE]&lt;br /&gt;
  * Label: Translated event label&lt;br /&gt;
  * Owner: Original sender&#039;s user ID&lt;br /&gt;
  * Parent: Original ActionComm ID&lt;br /&gt;
  * Linked to: Third party, contact, element&lt;br /&gt;
&lt;br /&gt;
#Stores event in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Returns success to Postmark&lt;br /&gt;
&lt;br /&gt;
===Event Linking===&lt;br /&gt;
&lt;br /&gt;
Events are automatically linked to Dolibarr objects:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;From trackid&#039;&#039;&#039;: Parses Dolibarr&#039;s trackid format (e.g., &amp;quot;pro1&amp;quot; = proposal ID 1)&lt;br /&gt;
*&#039;&#039;&#039;From metadata&#039;&#039;&#039;: Extracts &amp;lt;code&amp;gt;fk_soc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_contact&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;element_type&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;From recipient email&#039;&#039;&#039;: Searches third parties and contacts by email address&lt;br /&gt;
*&#039;&#039;&#039;From MessageID&#039;&#039;&#039;: Webhook events link to original &amp;quot;Sent&amp;quot; event via MessageID&lt;br /&gt;
&lt;br /&gt;
==Event Types==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Event Type!!Description!!When It Occurs!!Dolibarr Code!!ActionComm Type&lt;br /&gt;
|-&lt;br /&gt;
|Sent||Email sent via Postmark||Immediately after API call||POSTMARK_SENT||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Delivery||Email delivered||When recipient&#039;s server accepts||POSTMARK_DELIVERY||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Open||Email opened||First time recipient opens email||POSTMARK_OPEN||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Click||Link clicked||When recipient clicks a tracked link||POSTMARK_CLICK||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Bounce||Delivery failed||Email rejected by recipient&#039;s server||POSTMARK_BOUNCE||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Spam Complaint||Marked as spam||Recipient reports email as spam||POSTMARK_SPAMCOMPLAINT||AC_EMAIL&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
===Emails Not Sending===&lt;br /&gt;
&lt;br /&gt;
#Verify &amp;lt;code&amp;gt;POSTMARKAPP_REPLACE_MAILER&amp;lt;/code&amp;gt; constant is set to 1&lt;br /&gt;
#Check Server API Token is valid (use &amp;quot;Test Connection&amp;quot; button)&lt;br /&gt;
#Verify &amp;quot;From&amp;quot; email address is a verified Sender Signature in Postmark&lt;br /&gt;
#Check Dolibarr logs (&amp;lt;code&amp;gt;dolibarr.log&amp;lt;/code&amp;gt;) for error messages&lt;br /&gt;
#Ensure cURL extension is enabled in PHP&lt;br /&gt;
#Verify internet connectivity from server to Postmark API&lt;br /&gt;
&lt;br /&gt;
===Webhooks Not Received===&lt;br /&gt;
&lt;br /&gt;
#Verify webhook URL is accessible from internet (test with curl or browser)&lt;br /&gt;
#Check webhook is created in Postmark dashboard&lt;br /&gt;
#Verify webhook triggers are enabled (Delivery, Open, Click, Bounce, Spam)&lt;br /&gt;
#Test webhooks using built-in test buttons in configuration page&lt;br /&gt;
#Check server logs for incoming POST requests to &amp;lt;code&amp;gt;webhook.php&amp;lt;/code&amp;gt;&lt;br /&gt;
#Verify webhook URL doesn&#039;t require authentication (webhook uses NOLOGIN)&lt;br /&gt;
&lt;br /&gt;
===Click Tracking Not Working===&lt;br /&gt;
&lt;br /&gt;
*Click tracking requires emails to be sent in HTML format&lt;br /&gt;
*Plain text emails cannot track clicks&lt;br /&gt;
*Ensure &amp;lt;code&amp;gt;MAIN_MAIL_FORCE_CONTENT_TYPE_TO_HTML&amp;lt;/code&amp;gt; is enabled&lt;br /&gt;
*Verify &amp;quot;Track Clicks&amp;quot; option is enabled in configuration&lt;br /&gt;
*Check that links in emails are not already rewritten by another system&lt;br /&gt;
&lt;br /&gt;
===REST API errors (send-email)===&lt;br /&gt;
&lt;br /&gt;
#&#039;&#039;&#039;401 / 403&#039;&#039;&#039;: Confirm header &amp;lt;code&amp;gt;DOLAPIKEY&amp;lt;/code&amp;gt;, user login bound to that key has &amp;lt;code&amp;gt;postmarkapp-&amp;gt;api&amp;lt;/code&amp;gt;, module PostmarkApp enabled&lt;br /&gt;
#&#039;&#039;&#039;400 (sender)&#039;&#039;&#039;: No valid From — set the API user email, or configure a valid &#039;&#039;&#039;Company&#039;&#039;&#039; email matching a Postmark Sender Signature; in &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt; mode check setup validation and confirmation checkbox&lt;br /&gt;
#Consult &amp;lt;code&amp;gt;dolibarr.log&amp;lt;/code&amp;gt; and full examples in &#039;&#039;&#039;API.md&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Events Not Appearing in Agenda===&lt;br /&gt;
&lt;br /&gt;
#Verify Agenda module is enabled&lt;br /&gt;
#Check automatic triggers are enabled in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
#Verify user has permission to view ActionComm events&lt;br /&gt;
#Check &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table has data&lt;br /&gt;
#Verify webhook is receiving and processing events (check logs)&lt;br /&gt;
&lt;br /&gt;
===MultiCompany Issues===&lt;br /&gt;
&lt;br /&gt;
#Verify MultiCompany module is enabled&lt;br /&gt;
#Check entity field exists in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Verify sharing configuration in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; MultiCompany &amp;gt; Options&#039;&#039;&#039;&lt;br /&gt;
#Check SQL queries use &amp;lt;code&amp;gt;getEntity(&#039;postmarkapp_events&#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
#Verify entity is correctly assigned on email send&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add screenshots here when available --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Changelog=&lt;br /&gt;
&lt;br /&gt;
===Current release (module descriptor: 1.5.27)===&lt;br /&gt;
&lt;br /&gt;
See also &amp;lt;code&amp;gt;ChangeLog.md&amp;lt;/code&amp;gt; inside the package and the &#039;&#039;&#039;Changelog&#039;&#039;&#039; tab in administration.&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.25===&lt;br /&gt;
&lt;br /&gt;
*Documentation reminders: REST API sender configuration (&amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;company&amp;lt;/code&amp;gt;, confirmation), About page help (API response fields &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;from_source&amp;lt;/code&amp;gt;, HTTP 400 if no sender, HTML rendering of help)&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.24===&lt;br /&gt;
&lt;br /&gt;
*Module icons: addition of correct &amp;lt;code&amp;gt;img/&amp;lt;/code&amp;gt; files so Dolibarr &amp;lt;code&amp;gt;img_object&amp;lt;/code&amp;gt; URLs no longer return 404&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.23===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Changelog&#039;&#039;&#039; tab in administration; &#039;&#039;&#039;About&#039;&#039;&#039; page aligned with Dolibarr module info layout&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.22===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;About&#039;&#039;&#039; page displays &amp;lt;code&amp;gt;ChangeLog.md&amp;lt;/code&amp;gt; correctly again alongside README&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.10===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Default REST sender&#039;&#039;&#039; constants &amp;lt;code&amp;gt;POSTMARKAPP_DEFAULT_FROM_MODE&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;POSTMARKAPP_SOCIETE_FROM_CONFIRMED&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Setup&#039;&#039;&#039; UI: sender mode selection, displayed mysoc email, link to company card, mandatory Postmark confirmation in company mode, save blocked if enterprise email invalid, test mail aligned with mode&lt;br /&gt;
*&#039;&#039;&#039;REST&#039;&#039;&#039; &amp;lt;code&amp;gt;send-email&amp;lt;/code&amp;gt;: optional &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;user_id&amp;lt;/code&amp;gt;, response metadata &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;from_source&amp;lt;/code&amp;gt;, structured errors instead of anonymous &amp;lt;code&amp;gt;noreply&amp;lt;/code&amp;gt; fallback&lt;br /&gt;
*Helpers &amp;lt;code&amp;gt;postmarkapp_get_mysoc_sender()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;postmarkapp_is_valid_sender_email()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.2 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Added MultiCompany compatibility&lt;br /&gt;
*Added entity field to database&lt;br /&gt;
*Implemented getEntity() in all SQL queries&lt;br /&gt;
*Added MultiCompany sharing configuration&lt;br /&gt;
*Added user ownership for events (fk_user field)&lt;br /&gt;
*Enhanced object type support (supplier invoices, orders, projects, tickets, etc.)&lt;br /&gt;
*Improved event linking (from trackid, metadata, recipient email)&lt;br /&gt;
*Simplified event notes and labels&lt;br /&gt;
*Removed duplicate &amp;quot;Sent&amp;quot; event (relies on Dolibarr&#039;s native system)&lt;br /&gt;
*Added bilingual documentation&lt;br /&gt;
*Added multi-language support (7 languages)&lt;br /&gt;
*Added automatic trigger activation&lt;br /&gt;
*Enhanced webhook processing with entity inheritance&lt;br /&gt;
*Added comprehensive event filters&lt;br /&gt;
*Added reference search for linked objects&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.0 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Initial release&lt;br /&gt;
*Postmark API integration&lt;br /&gt;
*Webhook handling&lt;br /&gt;
*Event tracking&lt;br /&gt;
*Agenda integration&lt;br /&gt;
*Object linking&lt;br /&gt;
&lt;br /&gt;
=Links=&lt;br /&gt;
&lt;br /&gt;
*[https://postmarkapp.com Postmark Official Website]&lt;br /&gt;
*[https://lysis.net Lysis - Developer Website]&lt;br /&gt;
&lt;br /&gt;
=License=&lt;br /&gt;
&lt;br /&gt;
This module is distributed under the [https://www.gnu.org/licenses/gpl-3.0 GNU General Public License v3 (GPLv3)].&lt;br /&gt;
&lt;br /&gt;
=Professional Services / Services professionnels=&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Need help with setup?&#039;&#039;&#039; We can assist you with:&lt;br /&gt;
&lt;br /&gt;
*Installation and configuration of the PostmarkApp module&lt;br /&gt;
*REST API integrations (&amp;lt;code&amp;gt;DOLAPIKEY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt;, attachments)&lt;br /&gt;
*Postmark account setup and sender signature verification&lt;br /&gt;
*Webhook configuration and testing&lt;br /&gt;
*Integration with your existing Dolibarr workflows&lt;br /&gt;
*MultiCompany configuration and data migration&lt;br /&gt;
*Custom development and feature requests&lt;br /&gt;
*Training for your team&lt;br /&gt;
&lt;br /&gt;
Contact us for a personalized quote: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Besoin d&#039;aide pour le paramétrage ?&#039;&#039;&#039; Nous pouvons vous accompagner pour&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*L&#039;installation et la configuration du module PostmarkApp&lt;br /&gt;
*Les intégrations API REST (&amp;lt;code&amp;gt;DOLAPIKEY&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;from_mode&amp;lt;/code&amp;gt;, pièces jointes)&lt;br /&gt;
*La création de votre compte Postmark et la vérification des signatures d&#039;expéditeur&lt;br /&gt;
*La configuration et les tests des webhooks&lt;br /&gt;
*L&#039;intégration avec vos processus Dolibarr existants&lt;br /&gt;
*La configuration MultiCompany et la migration de données&lt;br /&gt;
*Le développement sur mesure et les demandes de fonctionnalités&lt;br /&gt;
*La formation de vos équipes&lt;br /&gt;
&lt;br /&gt;
Contactez-nous pour un devis personnalisé&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
=Author=&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alex BORDARAUD&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Website: https://lysis.net&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65142</id>
		<title>Module PostmarkApp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65142"/>
		<updated>2026-01-06T15:23:36Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dolibarr module&lt;br /&gt;
|name=PostmarkApp&lt;br /&gt;
|logo=&lt;br /&gt;
|developer=Alex BORDARAUD - Lysis&lt;br /&gt;
|contact=alex@lysis.net&lt;br /&gt;
|website=https://lysis.net&lt;br /&gt;
|dolistore=&lt;br /&gt;
|version=1.5.2&lt;br /&gt;
|dolibarr_min=19.0&lt;br /&gt;
|dolibarr_max=&lt;br /&gt;
|license=GPLv3&lt;br /&gt;
|language=Multi (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PostmarkApp&#039;&#039;&#039; is a professional Dolibarr module that integrates [https://postmarkapp.com Postmark], a transactional email service, to replace Dolibarr&#039;s native email sending system. It provides complete email traceability, real-time event tracking, and seamless integration with Dolibarr&#039;s Agenda module.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
PostmarkApp transforms your email communications in Dolibarr by providing enterprise-grade email delivery and tracking. Unlike standard SMTP, Postmark ensures high deliverability rates and provides detailed analytics on every email sent.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Key Benefits:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;100% Email Traceability&#039;&#039;&#039;: Track every email from sending to delivery, opening, and link clicks&lt;br /&gt;
*&#039;&#039;&#039;Professional Delivery&#039;&#039;&#039;: Postmark&#039;s infrastructure ensures 99.9% deliverability&lt;br /&gt;
*&#039;&#039;&#039;Real-time Notifications&#039;&#039;&#039;: Instant webhook notifications for all email events&lt;br /&gt;
*&#039;&#039;&#039;Complete Integration&#039;&#039;&#039;: All events automatically logged in Dolibarr&#039;s Agenda&lt;br /&gt;
*&#039;&#039;&#039;Multi-Entity Support&#039;&#039;&#039;: Full compatibility with Dolibarr&#039;s MultiCompany module&lt;br /&gt;
*&#039;&#039;&#039;User Ownership&#039;&#039;&#039;: Events are owned by the user who sent the email for proper notifications&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
PostmarkApp transforme vos communications email dans Dolibarr en fournissant une livraison et un suivi d&#039;emails de niveau entreprise. Contrairement au SMTP standard, Postmark garantit des taux de délivrabilité élevés et fournit des analyses détaillées sur chaque email envoyé.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Avantages principaux&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Traçabilité 100% des emails&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Suivez chaque email de l&#039;envoi à la livraison, l&#039;ouverture et les clics&lt;br /&gt;
*&#039;&#039;&#039;Livraison professionnelle&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: L&#039;infrastructure Postmark garantit 99,9% de délivrabilité&lt;br /&gt;
*&#039;&#039;&#039;Notifications en temps réel&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Notifications webhook instantanées pour tous les événements email&lt;br /&gt;
*&#039;&#039;&#039;Intégration complète&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Tous les événements automatiquement enregistrés dans l&#039;Agenda Dolibarr&lt;br /&gt;
*&#039;&#039;&#039;Support Multi-Entités&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Compatibilité complète avec le module MultiCompany de Dolibarr&lt;br /&gt;
*&#039;&#039;&#039;Propriété utilisateur&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Les événements appartiennent à l&#039;utilisateur qui a envoyé l&#039;email pour des notifications correctes&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
&lt;br /&gt;
===Core Features===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Email Sending via Postmark API&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Intercepts all Dolibarr email sending via hooks&lt;br /&gt;
  * Sends emails through Postmark&#039;s REST API&lt;br /&gt;
  * Supports HTML and plain text emails (auto-converts if needed)&lt;br /&gt;
  * Handles attachments, CC, BCC, Reply-To headers&lt;br /&gt;
  * Supports multiple message streams (transactional, marketing)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Real-time Event Tracking&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * &#039;&#039;&#039;Sent&#039;&#039;&#039;: Email successfully sent via Postmark&lt;br /&gt;
  * &#039;&#039;&#039;Delivered&#039;&#039;&#039;: Email delivered to recipient&#039;s mail server&lt;br /&gt;
  * &#039;&#039;&#039;Opened&#039;&#039;&#039;: Recipient opened the email (first open only)&lt;br /&gt;
  * &#039;&#039;&#039;Clicked&#039;&#039;&#039;: Recipient clicked a link in the email&lt;br /&gt;
  * &#039;&#039;&#039;Bounced&#039;&#039;&#039;: Email delivery failed (hard/soft bounce)&lt;br /&gt;
  * &#039;&#039;&#039;Spam Complaint&#039;&#039;&#039;: Recipient marked email as spam&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr Integration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * All events automatically created in Dolibarr&#039;s Agenda module&lt;br /&gt;
  * Events linked to original Dolibarr objects (invoices, proposals, orders, etc.)&lt;br /&gt;
  * Events linked to third parties and contacts&lt;br /&gt;
  * Parent-child relationships between events (Sent → Delivery → Open → Click)&lt;br /&gt;
  * User ownership: events belong to the user who sent the email&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Automatic Triggers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Six automatic triggers registered in Dolibarr&#039;s Agenda&lt;br /&gt;
  * Automatically enabled on module activation&lt;br /&gt;
  * Configurable in Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&lt;br /&gt;
  * Can trigger custom workflows based on email events&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Multi-Entity Support (MultiCompany)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Full compatibility with Dolibarr&#039;s MultiCompany module&lt;br /&gt;
  * Entity field in database for data isolation&lt;br /&gt;
  * Configurable sharing between entities&lt;br /&gt;
  * Automatic entity assignment based on email sender&#039;s entity&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Comprehensive Event Management&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Dedicated events list page with advanced filters&lt;br /&gt;
  * Filter by date, event type, recipient, subject, third party, contact, linked object, message ID&lt;br /&gt;
  * Search by object reference&lt;br /&gt;
  * Direct links to related Dolibarr objects&lt;br /&gt;
  * Link to ActionComm events&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Webhook Management&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Automatic webhook creation via Postmark API&lt;br /&gt;
  * Manual webhook configuration support&lt;br /&gt;
  * Built-in webhook testing tools&lt;br /&gt;
  * Webhook signature validation (optional)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Multi-language Support&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Available in 7 languages: French, English, German, Spanish, Italian, Portuguese, Dutch&lt;br /&gt;
  * All interface elements translated&lt;br /&gt;
  * Event labels and descriptions translated&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
===System Requirements===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr&#039;&#039;&#039;: Version 19.0 or higher&lt;br /&gt;
*&#039;&#039;&#039;PHP&#039;&#039;&#039;: Version 7.1 or higher&lt;br /&gt;
*&#039;&#039;&#039;PHP Extensions&#039;&#039;&#039;: cURL (required for API calls)&lt;br /&gt;
*&#039;&#039;&#039;Postmark Account&#039;&#039;&#039;: Active account with at least one server&lt;br /&gt;
*&#039;&#039;&#039;Server API Token&#039;&#039;&#039;: From Postmark dashboard&lt;br /&gt;
*&#039;&#039;&#039;Agenda Module&#039;&#039;&#039;: Must be enabled (mandatory dependency)&lt;br /&gt;
&lt;br /&gt;
===Postmark Requirements===&lt;br /&gt;
&lt;br /&gt;
*Verified Sender Signatures for the &amp;quot;From&amp;quot; email addresses&lt;br /&gt;
*Server API Token (found in Postmark &amp;gt; Servers &amp;gt; API Tokens)&lt;br /&gt;
*Webhook URL accessible from internet (for event tracking)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
===Step-by-Step Installation===&lt;br /&gt;
&lt;br /&gt;
#Download the module package &amp;lt;code&amp;gt;module_postmarkapp-x.y.z.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
#Extract to &amp;lt;code&amp;gt;htdocs/custom/postmarkapp/&amp;lt;/code&amp;gt; directory&lt;br /&gt;
#Go to &#039;&#039;&#039;Home &amp;gt; Setup &amp;gt; Modules/Applications&#039;&#039;&#039;&lt;br /&gt;
#Search for &amp;quot;PostmarkApp&amp;quot; in the module list&lt;br /&gt;
#Click &#039;&#039;&#039;Enable&#039;&#039;&#039; to activate the module&lt;br /&gt;
#The module will automatically:&lt;br /&gt;
&lt;br /&gt;
  * Create the &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
  * Register automatic triggers in Agenda&lt;br /&gt;
  * Configure MultiCompany sharing (if MultiCompany module is enabled)&lt;br /&gt;
&lt;br /&gt;
#Configure the module in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; PostmarkApp &amp;gt; Settings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Post-Installation===&lt;br /&gt;
&lt;br /&gt;
After installation, verify:&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table exists in your database&lt;br /&gt;
*The Agenda module is enabled&lt;br /&gt;
*Automatic triggers are visible in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
===Step 1: Server API Token===&lt;br /&gt;
&lt;br /&gt;
The Server API Token is the primary authentication method for Postmark.&lt;br /&gt;
&lt;br /&gt;
#Log in to your Postmark account at https://postmarkapp.com&lt;br /&gt;
#Navigate to &#039;&#039;&#039;Servers&#039;&#039;&#039; and select your server&lt;br /&gt;
#Go to the &#039;&#039;&#039;API Tokens&#039;&#039;&#039; tab&lt;br /&gt;
#Copy the &#039;&#039;&#039;Server API Token&#039;&#039;&#039; (starts with a long alphanumeric string)&lt;br /&gt;
#Paste it in the PostmarkApp configuration page under &amp;quot;Server API Token&amp;quot;&lt;br /&gt;
#Click &#039;&#039;&#039;Validate&#039;&#039;&#039; to test the connection&lt;br /&gt;
#If successful, you&#039;ll see a green confirmation message&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Security Note:&#039;&#039;&#039; The token is stored encrypted in Dolibarr&#039;s constants table.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Message Stream&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Select the Postmark message stream to use&lt;br /&gt;
  * Default: &amp;quot;outbound&amp;quot; (transactional emails)&lt;br /&gt;
  * Alternative: &amp;quot;broadcast&amp;quot; (marketing emails)&lt;br /&gt;
  * Streams are automatically loaded from your Postmark account&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Track Opens&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable/disable open tracking&lt;br /&gt;
  * When enabled, Postmark tracks when emails are opened&lt;br /&gt;
  * Only the first open is tracked (PostFirstOpenOnly)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Track Clicks&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable/disable click tracking&lt;br /&gt;
  * &#039;&#039;&#039;Requires HTML emails&#039;&#039;&#039; - plain text emails cannot track clicks&lt;br /&gt;
  * When enabled, all links in emails are rewritten by Postmark for tracking&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Replace Dolibarr Mailer&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable to route ALL Dolibarr emails through Postmark&lt;br /&gt;
  * When disabled, Dolibarr uses its native email system&lt;br /&gt;
  * Recommended: Keep enabled for consistent tracking&lt;br /&gt;
&lt;br /&gt;
===Step 3: Webhook Configuration (Optional but Recommended)===&lt;br /&gt;
&lt;br /&gt;
Webhooks allow Postmark to notify Dolibarr in real-time when email events occur.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Ensure your Server API Token is validated&lt;br /&gt;
#Click &#039;&#039;&#039;Create Webhook Automatically&#039;&#039;&#039;&lt;br /&gt;
#The module will:&lt;br /&gt;
&lt;br /&gt;
  * Generate the webhook URL (format: &amp;lt;code&amp;gt;https://yourdomain.com/dolibarr/custom/postmarkapp/webhook.php&amp;lt;/code&amp;gt;)&lt;br /&gt;
  * Create the webhook in Postmark via API&lt;br /&gt;
  * Configure it to listen for: Delivery, Open (First Open Only), Click, Bounce, Spam Complaint&lt;br /&gt;
&lt;br /&gt;
#You&#039;ll see a confirmation message with the webhook ID&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manual Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Copy the webhook URL displayed in the configuration page&lt;br /&gt;
#Log in to Postmark dashboard&lt;br /&gt;
#Go to &#039;&#039;&#039;Servers &amp;gt; Your Server &amp;gt; Webhooks&#039;&#039;&#039;&lt;br /&gt;
#Click &#039;&#039;&#039;Add Webhook&#039;&#039;&#039;&lt;br /&gt;
#Paste the URL&lt;br /&gt;
#Enable the following triggers:&lt;br /&gt;
&lt;br /&gt;
  * Delivery&lt;br /&gt;
  * Open (select &amp;quot;First Open Only&amp;quot;)&lt;br /&gt;
  * Click&lt;br /&gt;
  * Bounce&lt;br /&gt;
  * Spam Complaint&lt;br /&gt;
&lt;br /&gt;
#Save the webhook&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing Webhooks:&#039;&#039;&#039;&lt;br /&gt;
The configuration page includes test buttons to simulate webhook events:&lt;br /&gt;
&lt;br /&gt;
*Test Delivery&lt;br /&gt;
*Test Open&lt;br /&gt;
*Test Click&lt;br /&gt;
*Test Bounce&lt;br /&gt;
&lt;br /&gt;
These send test payloads to your webhook endpoint for verification.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Testing===&lt;br /&gt;
&lt;br /&gt;
#Click &#039;&#039;&#039;Test Connection&#039;&#039;&#039; to verify API connectivity&lt;br /&gt;
#Click &#039;&#039;&#039;Send Test Email&#039;&#039;&#039; to send a test email to your logged-in user&#039;s email address&lt;br /&gt;
#The test email includes:&lt;br /&gt;
&lt;br /&gt;
  * HTML and plain text versions&lt;br /&gt;
  * A trackable link to test click tracking&lt;br /&gt;
  * Metadata for webhook linking&lt;br /&gt;
&lt;br /&gt;
#Check your email inbox and verify delivery&lt;br /&gt;
#Use the webhook test buttons to verify event processing&lt;br /&gt;
&lt;br /&gt;
==MultiCompany Compatibility==&lt;br /&gt;
&lt;br /&gt;
PostmarkApp is fully compatible with Dolibarr&#039;s MultiCompany module.&lt;br /&gt;
&lt;br /&gt;
===How It Works===&lt;br /&gt;
&lt;br /&gt;
*Each email event is stored with an &amp;lt;code&amp;gt;entity&amp;lt;/code&amp;gt; field&lt;br /&gt;
*By default, events are isolated per entity (entity = current entity)&lt;br /&gt;
*Events can be shared between entities if MultiCompany sharing is enabled&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
&lt;br /&gt;
#Enable the MultiCompany module in Dolibarr&lt;br /&gt;
#Go to &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; MultiCompany &amp;gt; Options&#039;&#039;&#039;&lt;br /&gt;
#Find the &amp;quot;PostmarkApp Events&amp;quot; sharing option&lt;br /&gt;
#Enable/disable sharing as needed&lt;br /&gt;
&lt;br /&gt;
===Sharing Behavior===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Sharing Disabled&#039;&#039;&#039;: Each entity only sees its own email events&lt;br /&gt;
*&#039;&#039;&#039;Sharing Enabled&#039;&#039;&#039;: Events can be shared between entities (entity IN (0, entity1, entity2, ...))&lt;br /&gt;
*The webhook automatically uses the entity from the original &amp;quot;Sent&amp;quot; event&lt;br /&gt;
&lt;br /&gt;
===Entity Assignment===&lt;br /&gt;
&lt;br /&gt;
*When an email is sent, the event is assigned to the current entity (&amp;lt;code&amp;gt;$conf-&amp;gt;entity&amp;lt;/code&amp;gt;)&lt;br /&gt;
*Webhook events inherit the entity from the original &amp;quot;Sent&amp;quot; event&lt;br /&gt;
*This ensures proper data isolation and sharing&lt;br /&gt;
&lt;br /&gt;
==Technical Architecture==&lt;br /&gt;
&lt;br /&gt;
===Module Structure===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
postmarkapp/&lt;br /&gt;
├── core/&lt;br /&gt;
│   └── modules/&lt;br /&gt;
│       └── modPostmarkApp.class.php    # Module descriptor&lt;br /&gt;
├── class/&lt;br /&gt;
│   └── actions_postmarkapp.class.php   # Hook handlers&lt;br /&gt;
├── lib/&lt;br /&gt;
│   └── class/&lt;br /&gt;
│       └── postmarkappmail.class.php   # Postmark API wrapper&lt;br /&gt;
├── admin/&lt;br /&gt;
│   └── setup.php                       # Configuration page&lt;br /&gt;
├── events.php                           # Events list page&lt;br /&gt;
├── webhook.php                          # Webhook endpoint&lt;br /&gt;
└── langs/&lt;br /&gt;
    └── [lang]/&lt;br /&gt;
        └── postmarkapp.lang            # Translations&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hooks System===&lt;br /&gt;
&lt;br /&gt;
The module uses Dolibarr&#039;s hook system to intercept email sending:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Hook Name&#039;&#039;&#039;: &amp;lt;code&amp;gt;sendMail&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Hook File&#039;&#039;&#039;: &amp;lt;code&amp;gt;class/actions_postmarkapp.class.php&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Hook Method&#039;&#039;&#039;: &amp;lt;code&amp;gt;sendMail($parameters, &amp;amp;$object, &amp;amp;$action, $hookmanager)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How It Works:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Dolibarr prepares to send an email via &amp;lt;code&amp;gt;CMailFile&amp;lt;/code&amp;gt;&lt;br /&gt;
#The hook intercepts the email before native sending&lt;br /&gt;
#Extracts email data (to, subject, body, attachments, etc.)&lt;br /&gt;
#Sends email via Postmark API using &amp;lt;code&amp;gt;PostmarkAppMail&amp;lt;/code&amp;gt; class&lt;br /&gt;
#Logs the &amp;quot;Sent&amp;quot; event to database&lt;br /&gt;
#Returns 1 to prevent native Dolibarr email sending&lt;br /&gt;
&lt;br /&gt;
===API Integration===&lt;br /&gt;
&lt;br /&gt;
The module uses Postmark&#039;s REST API:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Base URL&#039;&#039;&#039;: &amp;lt;code&amp;gt;https://api.postmarkapp.com&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Authentication&#039;&#039;&#039;: &amp;lt;code&amp;gt;X-Postmark-Server-Token&amp;lt;/code&amp;gt; header&lt;br /&gt;
*&#039;&#039;&#039;Endpoints Used&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * &amp;lt;code&amp;gt;POST /email&amp;lt;/code&amp;gt; - Send email&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /server&amp;lt;/code&amp;gt; - Test connection&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /message-streams&amp;lt;/code&amp;gt; - List streams&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /senders&amp;lt;/code&amp;gt; - List sender signatures&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /webhooks&amp;lt;/code&amp;gt; - List webhooks&lt;br /&gt;
  * &amp;lt;code&amp;gt;POST /webhooks&amp;lt;/code&amp;gt; - Create webhook&lt;br /&gt;
&lt;br /&gt;
===Database Schema===&lt;br /&gt;
&lt;br /&gt;
The module creates one custom table: &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Column!!Type!!Null!!Default!!Description&lt;br /&gt;
|-&lt;br /&gt;
|rowid||INTEGER||NO||AUTO_INCREMENT||Primary key&lt;br /&gt;
|-&lt;br /&gt;
|email_id||VARCHAR(255)||NO|| ||Postmark MessageID (unique identifier)&lt;br /&gt;
|-&lt;br /&gt;
|event_type||VARCHAR(50)||NO|| ||Event type (Sent, Delivery, Open, Click, Bounce, SpamComplaint)&lt;br /&gt;
|-&lt;br /&gt;
|recipient||VARCHAR(255)||YES||NULL||Email recipient address&lt;br /&gt;
|-&lt;br /&gt;
|subject||VARCHAR(255)||YES||NULL||Email subject line&lt;br /&gt;
|-&lt;br /&gt;
|fk_soc||INTEGER||YES||NULL||Linked third party ID (llx_societe.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|fk_contact||INTEGER||YES||NULL||Linked contact ID (llx_socpeople.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|fk_element||INTEGER||YES||NULL||Linked element ID (depends on element_type)&lt;br /&gt;
|-&lt;br /&gt;
|element_type||VARCHAR(50)||YES||NULL||Element type (propal, facture, commande, etc.)&lt;br /&gt;
|-&lt;br /&gt;
|fk_user||INTEGER||YES||NULL||User ID who sent the email (for event ownership)&lt;br /&gt;
|-&lt;br /&gt;
|fk_actioncomm||INTEGER||YES||NULL||Linked ActionComm ID (llx_actioncomm.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|event_data||TEXT||YES||NULL||JSON data from webhook (full payload)&lt;br /&gt;
|-&lt;br /&gt;
|entity||INTEGER||NO||1||Entity ID (for MultiCompany)&lt;br /&gt;
|-&lt;br /&gt;
|date_creation||DATETIME||NO|| ||Event timestamp&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Indexes:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_email_id&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;email_id&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_event_type&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;event_type&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_date_creation&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;date_creation&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_soc&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_soc&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_contact&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_contact&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_element&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_user&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_user&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_entity&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;entity&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Supported Object Types===&lt;br /&gt;
&lt;br /&gt;
The module can link email events to various Dolibarr objects:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Object Type!!Description!!Table&lt;br /&gt;
|-&lt;br /&gt;
|propal||Customer Proposal||llx_propal&lt;br /&gt;
|-&lt;br /&gt;
|commande||Customer Order||llx_commande&lt;br /&gt;
|-&lt;br /&gt;
|facture||Customer Invoice||llx_facture&lt;br /&gt;
|-&lt;br /&gt;
|expedition||Shipment||llx_expedition&lt;br /&gt;
|-&lt;br /&gt;
|contrat||Contract||llx_contrat&lt;br /&gt;
|-&lt;br /&gt;
|fichinter||Intervention||llx_fichinter&lt;br /&gt;
|-&lt;br /&gt;
|facture_fourn||Supplier Invoice||llx_facture_fourn&lt;br /&gt;
|-&lt;br /&gt;
|order_supplier||Supplier Order||llx_commande_fournisseur&lt;br /&gt;
|-&lt;br /&gt;
|supplier_proposal||Supplier Proposal||llx_supplier_proposal&lt;br /&gt;
|-&lt;br /&gt;
|project||Project||llx_projet&lt;br /&gt;
|-&lt;br /&gt;
|ticket||Ticket||llx_ticket&lt;br /&gt;
|-&lt;br /&gt;
|member||Member||llx_adherent&lt;br /&gt;
|-&lt;br /&gt;
|reception||Reception||llx_reception&lt;br /&gt;
|-&lt;br /&gt;
|expensereport||Expense Report||llx_expensereport&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Automatic Triggers===&lt;br /&gt;
&lt;br /&gt;
The module registers 6 automatic triggers in Dolibarr&#039;s Agenda system:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Trigger Code!!Label Key!!Description Key!!Rang&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_SENT||PostmarkTriggerSent||PostmarkTriggerSentDesc||50100&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_DELIVERY||PostmarkTriggerDelivery||PostmarkTriggerDeliveryDesc||50101&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_OPEN||PostmarkTriggerOpen||PostmarkTriggerOpenDesc||50102&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_CLICK||PostmarkTriggerClick||PostmarkTriggerClickDesc||50103&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_BOUNCE||PostmarkTriggerBounce||PostmarkTriggerBounceDesc||50104&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_SPAMCOMPLAINT||PostmarkTriggerSpam||PostmarkTriggerSpamDesc||50105&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
These triggers are:&lt;br /&gt;
&lt;br /&gt;
*Automatically registered on module activation&lt;br /&gt;
*Automatically enabled (constants &amp;lt;code&amp;gt;MAIN_AGENDA_ACTIONAUTO_*&amp;lt;/code&amp;gt; set to 1)&lt;br /&gt;
*Configurable in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
*Can trigger custom workflows based on email events&lt;br /&gt;
&lt;br /&gt;
===Permissions===&lt;br /&gt;
&lt;br /&gt;
The module defines two permissions:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;postmarkapp_read&#039;&#039;&#039;: View email events (required for events list page)&lt;br /&gt;
*&#039;&#039;&#039;postmarkapp_setup&#039;&#039;&#039;: Configure the module (required for setup page)&lt;br /&gt;
&lt;br /&gt;
Permissions are checked using:&lt;br /&gt;
&amp;lt;code&amp;gt;if ($user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;read&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;if ($user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;setup&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Webhook Processing===&lt;br /&gt;
&lt;br /&gt;
The webhook endpoint (&amp;lt;code&amp;gt;webhook.php&amp;lt;/code&amp;gt;) processes incoming Postmark events:&lt;br /&gt;
&lt;br /&gt;
#Receives POST request from Postmark with JSON payload&lt;br /&gt;
#Validates webhook signature (optional, if configured)&lt;br /&gt;
#Extracts event data (type, recipient, message ID, metadata)&lt;br /&gt;
#Searches for original &amp;quot;Sent&amp;quot; event by MessageID&lt;br /&gt;
#Retrieves linked objects (third party, contact, element) from original event&lt;br /&gt;
#Creates ActionComm event in Dolibarr&#039;s Agenda&lt;br /&gt;
#Sets event ownership to original sender&#039;s user ID&lt;br /&gt;
#Links event to original ActionComm (parent-child relationship)&lt;br /&gt;
#Stores detailed event data in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Returns HTTP 200 to Postmark&lt;br /&gt;
&lt;br /&gt;
===SQL Queries and MultiCompany===&lt;br /&gt;
&lt;br /&gt;
All SQL queries use &amp;lt;code&amp;gt;getEntity()&amp;lt;/code&amp;gt; function for MultiCompany compatibility:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;SELECT * FROM llx_postmarkapp_events WHERE entity IN (getEntity(&#039;postmarkapp_events&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This ensures:&lt;br /&gt;
&lt;br /&gt;
*Data isolation per entity (by default)&lt;br /&gt;
*Data sharing when MultiCompany sharing is enabled&lt;br /&gt;
*Proper entity assignment on insert&lt;br /&gt;
&lt;br /&gt;
==How It Works==&lt;br /&gt;
&lt;br /&gt;
===Email Sending Flow===&lt;br /&gt;
&lt;br /&gt;
#User triggers email sending in Dolibarr (e.g., sending an invoice)&lt;br /&gt;
#Dolibarr prepares &amp;lt;code&amp;gt;CMailFile&amp;lt;/code&amp;gt; object with email data&lt;br /&gt;
#PostmarkApp hook intercepts via &amp;lt;code&amp;gt;sendMail&amp;lt;/code&amp;gt; hook&lt;br /&gt;
#Module extracts:&lt;br /&gt;
&lt;br /&gt;
  * Recipient(s), subject, body (HTML/text), attachments&lt;br /&gt;
  * Linked objects (from &amp;lt;code&amp;gt;trackid&amp;lt;/code&amp;gt; or metadata)&lt;br /&gt;
  * Current user ID (for event ownership)&lt;br /&gt;
&lt;br /&gt;
#Email sent via Postmark API&lt;br /&gt;
#Postmark returns MessageID&lt;br /&gt;
#Module logs &amp;quot;Sent&amp;quot; event to database with:&lt;br /&gt;
&lt;br /&gt;
  * MessageID, recipient, subject, linked objects, user ID, entity&lt;br /&gt;
&lt;br /&gt;
#Returns 1 to prevent native Dolibarr email sending&lt;br /&gt;
&lt;br /&gt;
===Webhook Event Flow===&lt;br /&gt;
&lt;br /&gt;
#Postmark detects email event (delivery, open, click, bounce, spam)&lt;br /&gt;
#Postmark sends POST request to webhook URL with JSON payload&lt;br /&gt;
#Webhook endpoint receives and validates request&lt;br /&gt;
#Searches for original &amp;quot;Sent&amp;quot; event using MessageID&lt;br /&gt;
#Retrieves:&lt;br /&gt;
&lt;br /&gt;
  * Linked objects (third party, contact, element)&lt;br /&gt;
  * User ID who sent the email&lt;br /&gt;
  * Entity ID&lt;br /&gt;
  * Original ActionComm ID&lt;br /&gt;
&lt;br /&gt;
#Creates new ActionComm event:&lt;br /&gt;
&lt;br /&gt;
  * Type: AC_EMAIL&lt;br /&gt;
  * Code: POSTMARK_[EVENT_TYPE]&lt;br /&gt;
  * Label: Translated event label&lt;br /&gt;
  * Owner: Original sender&#039;s user ID&lt;br /&gt;
  * Parent: Original ActionComm ID&lt;br /&gt;
  * Linked to: Third party, contact, element&lt;br /&gt;
&lt;br /&gt;
#Stores event in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Returns success to Postmark&lt;br /&gt;
&lt;br /&gt;
===Event Linking===&lt;br /&gt;
&lt;br /&gt;
Events are automatically linked to Dolibarr objects:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;From trackid&#039;&#039;&#039;: Parses Dolibarr&#039;s trackid format (e.g., &amp;quot;pro1&amp;quot; = proposal ID 1)&lt;br /&gt;
*&#039;&#039;&#039;From metadata&#039;&#039;&#039;: Extracts &amp;lt;code&amp;gt;fk_soc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_contact&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;element_type&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;From recipient email&#039;&#039;&#039;: Searches third parties and contacts by email address&lt;br /&gt;
*&#039;&#039;&#039;From MessageID&#039;&#039;&#039;: Webhook events link to original &amp;quot;Sent&amp;quot; event via MessageID&lt;br /&gt;
&lt;br /&gt;
==Event Types==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Event Type!!Description!!When It Occurs!!Dolibarr Code!!ActionComm Type&lt;br /&gt;
|-&lt;br /&gt;
|Sent||Email sent via Postmark||Immediately after API call||POSTMARK_SENT||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Delivery||Email delivered||When recipient&#039;s server accepts||POSTMARK_DELIVERY||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Open||Email opened||First time recipient opens email||POSTMARK_OPEN||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Click||Link clicked||When recipient clicks a tracked link||POSTMARK_CLICK||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Bounce||Delivery failed||Email rejected by recipient&#039;s server||POSTMARK_BOUNCE||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Spam Complaint||Marked as spam||Recipient reports email as spam||POSTMARK_SPAMCOMPLAINT||AC_EMAIL&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
===Emails Not Sending===&lt;br /&gt;
&lt;br /&gt;
#Verify &amp;lt;code&amp;gt;POSTMARKAPP_REPLACE_MAILER&amp;lt;/code&amp;gt; constant is set to 1&lt;br /&gt;
#Check Server API Token is valid (use &amp;quot;Test Connection&amp;quot; button)&lt;br /&gt;
#Verify &amp;quot;From&amp;quot; email address is a verified Sender Signature in Postmark&lt;br /&gt;
#Check Dolibarr logs (&amp;lt;code&amp;gt;dolibarr.log&amp;lt;/code&amp;gt;) for error messages&lt;br /&gt;
#Ensure cURL extension is enabled in PHP&lt;br /&gt;
#Verify internet connectivity from server to Postmark API&lt;br /&gt;
&lt;br /&gt;
===Webhooks Not Received===&lt;br /&gt;
&lt;br /&gt;
#Verify webhook URL is accessible from internet (test with curl or browser)&lt;br /&gt;
#Check webhook is created in Postmark dashboard&lt;br /&gt;
#Verify webhook triggers are enabled (Delivery, Open, Click, Bounce, Spam)&lt;br /&gt;
#Test webhooks using built-in test buttons in configuration page&lt;br /&gt;
#Check server logs for incoming POST requests to &amp;lt;code&amp;gt;webhook.php&amp;lt;/code&amp;gt;&lt;br /&gt;
#Verify webhook URL doesn&#039;t require authentication (webhook uses NOLOGIN)&lt;br /&gt;
&lt;br /&gt;
===Click Tracking Not Working===&lt;br /&gt;
&lt;br /&gt;
*Click tracking requires emails to be sent in HTML format&lt;br /&gt;
*Plain text emails cannot track clicks&lt;br /&gt;
*Ensure &amp;lt;code&amp;gt;MAIN_MAIL_FORCE_CONTENT_TYPE_TO_HTML&amp;lt;/code&amp;gt; is enabled&lt;br /&gt;
*Verify &amp;quot;Track Clicks&amp;quot; option is enabled in configuration&lt;br /&gt;
*Check that links in emails are not already rewritten by another system&lt;br /&gt;
&lt;br /&gt;
===Events Not Appearing in Agenda===&lt;br /&gt;
&lt;br /&gt;
#Verify Agenda module is enabled&lt;br /&gt;
#Check automatic triggers are enabled in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
#Verify user has permission to view ActionComm events&lt;br /&gt;
#Check &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table has data&lt;br /&gt;
#Verify webhook is receiving and processing events (check logs)&lt;br /&gt;
&lt;br /&gt;
===MultiCompany Issues===&lt;br /&gt;
&lt;br /&gt;
#Verify MultiCompany module is enabled&lt;br /&gt;
#Check entity field exists in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Verify sharing configuration in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; MultiCompany &amp;gt; Options&#039;&#039;&#039;&lt;br /&gt;
#Check SQL queries use &amp;lt;code&amp;gt;getEntity(&#039;postmarkapp_events&#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
#Verify entity is correctly assigned on email send&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add screenshots here when available --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.2 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Added MultiCompany compatibility&lt;br /&gt;
*Added entity field to database&lt;br /&gt;
*Implemented getEntity() in all SQL queries&lt;br /&gt;
*Added MultiCompany sharing configuration&lt;br /&gt;
*Added user ownership for events (fk_user field)&lt;br /&gt;
*Enhanced object type support (supplier invoices, orders, projects, tickets, etc.)&lt;br /&gt;
*Improved event linking (from trackid, metadata, recipient email)&lt;br /&gt;
*Simplified event notes and labels&lt;br /&gt;
*Removed duplicate &amp;quot;Sent&amp;quot; event (relies on Dolibarr&#039;s native system)&lt;br /&gt;
*Added bilingual documentation&lt;br /&gt;
*Added multi-language support (7 languages)&lt;br /&gt;
*Added automatic trigger activation&lt;br /&gt;
*Enhanced webhook processing with entity inheritance&lt;br /&gt;
*Added comprehensive event filters&lt;br /&gt;
*Added reference search for linked objects&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.0 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Initial release&lt;br /&gt;
*Postmark API integration&lt;br /&gt;
*Webhook handling&lt;br /&gt;
*Event tracking&lt;br /&gt;
*Agenda integration&lt;br /&gt;
*Object linking&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
*[https://postmarkapp.com Postmark Official Website]&lt;br /&gt;
*[https://lysis.net Lysis - Developer Website]&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
This module is distributed under the [https://www.gnu.org/licenses/gpl-3.0 GNU General Public License v3 (GPLv3)].&lt;br /&gt;
&lt;br /&gt;
==Professional Services / Services professionnels==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Need help with setup?&#039;&#039;&#039; We can assist you with:&lt;br /&gt;
&lt;br /&gt;
*Installation and configuration of the PostmarkApp module&lt;br /&gt;
*Postmark account setup and sender signature verification&lt;br /&gt;
*Webhook configuration and testing&lt;br /&gt;
*Integration with your existing Dolibarr workflows&lt;br /&gt;
*MultiCompany configuration and data migration&lt;br /&gt;
*Custom development and feature requests&lt;br /&gt;
*Training for your team&lt;br /&gt;
&lt;br /&gt;
Contact us for a personalized quote: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Besoin d&#039;aide pour le paramétrage ?&#039;&#039;&#039; Nous pouvons vous accompagner pour&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*L&#039;installation et la configuration du module PostmarkApp&lt;br /&gt;
*La création de votre compte Postmark et la vérification des signatures d&#039;expéditeur&lt;br /&gt;
*La configuration et les tests des webhooks&lt;br /&gt;
*L&#039;intégration avec vos processus Dolibarr existants&lt;br /&gt;
*La configuration MultiCompany et la migration de données&lt;br /&gt;
*Le développement sur mesure et les demandes de fonctionnalités&lt;br /&gt;
*La formation de vos équipes&lt;br /&gt;
&lt;br /&gt;
Contactez-nous pour un devis personnalisé&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alex BORDARAUD&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Website: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
[[Category:External module]]&lt;br /&gt;
[[Category:Communication module]]&lt;br /&gt;
[[Category:Email module]]&lt;br /&gt;
[[Category:MultiCompany compatible]]&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65141</id>
		<title>Module PostmarkApp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65141"/>
		<updated>2026-01-06T15:22:35Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dolibarr module&lt;br /&gt;
|name=PostmarkApp&lt;br /&gt;
|logo=&lt;br /&gt;
|developer=Alex BORDARAUD - Lysis&lt;br /&gt;
|contact=alex@lysis.net&lt;br /&gt;
|website=https://lysis.net&lt;br /&gt;
|dolistore=&lt;br /&gt;
|version=1.5.2&lt;br /&gt;
|dolibarr_min=19.0&lt;br /&gt;
|dolibarr_max=&lt;br /&gt;
|license=GPLv3&lt;br /&gt;
|language=Multi (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PostmarkApp&#039;&#039;&#039; is a professional Dolibarr module that integrates [https://postmarkapp.com Postmark], a transactional email service, to replace Dolibarr&#039;s native email sending system. It provides complete email traceability, real-time event tracking, and seamless integration with Dolibarr&#039;s Agenda module.&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
PostmarkApp transforms your email communications in Dolibarr by providing enterprise-grade email delivery and tracking. Unlike standard SMTP, Postmark ensures high deliverability rates and provides detailed analytics on every email sent.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Key Benefits:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;100% Email Traceability&#039;&#039;&#039;: Track every email from sending to delivery, opening, and link clicks&lt;br /&gt;
*&#039;&#039;&#039;Professional Delivery&#039;&#039;&#039;: Postmark&#039;s infrastructure ensures 99.9% deliverability&lt;br /&gt;
*&#039;&#039;&#039;Real-time Notifications&#039;&#039;&#039;: Instant webhook notifications for all email events&lt;br /&gt;
*&#039;&#039;&#039;Complete Integration&#039;&#039;&#039;: All events automatically logged in Dolibarr&#039;s Agenda&lt;br /&gt;
*&#039;&#039;&#039;Multi-Entity Support&#039;&#039;&#039;: Full compatibility with Dolibarr&#039;s MultiCompany module&lt;br /&gt;
*&#039;&#039;&#039;User Ownership&#039;&#039;&#039;: Events are owned by the user who sent the email for proper notifications&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
PostmarkApp transforme vos communications email dans Dolibarr en fournissant une livraison et un suivi d&#039;emails de niveau entreprise. Contrairement au SMTP standard, Postmark garantit des taux de délivrabilité élevés et fournit des analyses détaillées sur chaque email envoyé.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Avantages principaux&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Traçabilité 100% des emails&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Suivez chaque email de l&#039;envoi à la livraison, l&#039;ouverture et les clics&lt;br /&gt;
*&#039;&#039;&#039;Livraison professionnelle&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: L&#039;infrastructure Postmark garantit 99,9% de délivrabilité&lt;br /&gt;
*&#039;&#039;&#039;Notifications en temps réel&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Notifications webhook instantanées pour tous les événements email&lt;br /&gt;
*&#039;&#039;&#039;Intégration complète&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Tous les événements automatiquement enregistrés dans l&#039;Agenda Dolibarr&lt;br /&gt;
*&#039;&#039;&#039;Support Multi-Entités&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Compatibilité complète avec le module MultiCompany de Dolibarr&lt;br /&gt;
*&#039;&#039;&#039;Propriété utilisateur&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Les événements appartiennent à l&#039;utilisateur qui a envoyé l&#039;email pour des notifications correctes&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
&lt;br /&gt;
===Core Features===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Email Sending via Postmark API&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Intercepts all Dolibarr email sending via hooks&lt;br /&gt;
  * Sends emails through Postmark&#039;s REST API&lt;br /&gt;
  * Supports HTML and plain text emails (auto-converts if needed)&lt;br /&gt;
  * Handles attachments, CC, BCC, Reply-To headers&lt;br /&gt;
  * Supports multiple message streams (transactional, marketing)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Real-time Event Tracking&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * &#039;&#039;&#039;Sent&#039;&#039;&#039;: Email successfully sent via Postmark&lt;br /&gt;
  * &#039;&#039;&#039;Delivered&#039;&#039;&#039;: Email delivered to recipient&#039;s mail server&lt;br /&gt;
  * &#039;&#039;&#039;Opened&#039;&#039;&#039;: Recipient opened the email (first open only)&lt;br /&gt;
  * &#039;&#039;&#039;Clicked&#039;&#039;&#039;: Recipient clicked a link in the email&lt;br /&gt;
  * &#039;&#039;&#039;Bounced&#039;&#039;&#039;: Email delivery failed (hard/soft bounce)&lt;br /&gt;
  * &#039;&#039;&#039;Spam Complaint&#039;&#039;&#039;: Recipient marked email as spam&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr Integration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * All events automatically created in Dolibarr&#039;s Agenda module&lt;br /&gt;
  * Events linked to original Dolibarr objects (invoices, proposals, orders, etc.)&lt;br /&gt;
  * Events linked to third parties and contacts&lt;br /&gt;
  * Parent-child relationships between events (Sent → Delivery → Open → Click)&lt;br /&gt;
  * User ownership: events belong to the user who sent the email&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Automatic Triggers&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Six automatic triggers registered in Dolibarr&#039;s Agenda&lt;br /&gt;
  * Automatically enabled on module activation&lt;br /&gt;
  * Configurable in Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&lt;br /&gt;
  * Can trigger custom workflows based on email events&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Multi-Entity Support (MultiCompany)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Full compatibility with Dolibarr&#039;s MultiCompany module&lt;br /&gt;
  * Entity field in database for data isolation&lt;br /&gt;
  * Configurable sharing between entities&lt;br /&gt;
  * Automatic entity assignment based on email sender&#039;s entity&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Comprehensive Event Management&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Dedicated events list page with advanced filters&lt;br /&gt;
  * Filter by date, event type, recipient, subject, third party, contact, linked object, message ID&lt;br /&gt;
  * Search by object reference&lt;br /&gt;
  * Direct links to related Dolibarr objects&lt;br /&gt;
  * Link to ActionComm events&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Webhook Management&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Automatic webhook creation via Postmark API&lt;br /&gt;
  * Manual webhook configuration support&lt;br /&gt;
  * Built-in webhook testing tools&lt;br /&gt;
  * Webhook signature validation (optional)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Multi-language Support&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
  * Available in 7 languages: French, English, German, Spanish, Italian, Portuguese, Dutch&lt;br /&gt;
  * All interface elements translated&lt;br /&gt;
  * Event labels and descriptions translated&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
===System Requirements===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr&#039;&#039;&#039;: Version 19.0 or higher&lt;br /&gt;
*&#039;&#039;&#039;PHP&#039;&#039;&#039;: Version 7.1 or higher&lt;br /&gt;
*&#039;&#039;&#039;PHP Extensions&#039;&#039;&#039;: cURL (required for API calls)&lt;br /&gt;
*&#039;&#039;&#039;Postmark Account&#039;&#039;&#039;: Active account with at least one server&lt;br /&gt;
*&#039;&#039;&#039;Server API Token&#039;&#039;&#039;: From Postmark dashboard&lt;br /&gt;
*&#039;&#039;&#039;Agenda Module&#039;&#039;&#039;: Must be enabled (mandatory dependency)&lt;br /&gt;
&lt;br /&gt;
===Postmark Requirements===&lt;br /&gt;
&lt;br /&gt;
*Verified Sender Signatures for the &amp;quot;From&amp;quot; email addresses&lt;br /&gt;
*Server API Token (found in Postmark &amp;gt; Servers &amp;gt; API Tokens)&lt;br /&gt;
*Webhook URL accessible from internet (for event tracking)&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
===Step-by-Step Installation===&lt;br /&gt;
&lt;br /&gt;
#Download the module package &amp;lt;code&amp;gt;module_postmarkapp-x.y.z.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
#Extract to &amp;lt;code&amp;gt;htdocs/custom/postmarkapp/&amp;lt;/code&amp;gt; directory&lt;br /&gt;
#Go to &#039;&#039;&#039;Home &amp;gt; Setup &amp;gt; Modules/Applications&#039;&#039;&#039;&lt;br /&gt;
#Search for &amp;quot;PostmarkApp&amp;quot; in the module list&lt;br /&gt;
#Click &#039;&#039;&#039;Enable&#039;&#039;&#039; to activate the module&lt;br /&gt;
#The module will automatically:&lt;br /&gt;
&lt;br /&gt;
  * Create the &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
  * Register automatic triggers in Agenda&lt;br /&gt;
  * Configure MultiCompany sharing (if MultiCompany module is enabled)&lt;br /&gt;
&lt;br /&gt;
#Configure the module in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; PostmarkApp &amp;gt; Settings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Post-Installation===&lt;br /&gt;
&lt;br /&gt;
After installation, verify:&lt;br /&gt;
&lt;br /&gt;
*The &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table exists in your database&lt;br /&gt;
*The Agenda module is enabled&lt;br /&gt;
*Automatic triggers are visible in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
===Step 1: Server API Token===&lt;br /&gt;
&lt;br /&gt;
The Server API Token is the primary authentication method for Postmark.&lt;br /&gt;
&lt;br /&gt;
#Log in to your Postmark account at https://postmarkapp.com&lt;br /&gt;
#Navigate to &#039;&#039;&#039;Servers&#039;&#039;&#039; and select your server&lt;br /&gt;
#Go to the &#039;&#039;&#039;API Tokens&#039;&#039;&#039; tab&lt;br /&gt;
#Copy the &#039;&#039;&#039;Server API Token&#039;&#039;&#039; (starts with a long alphanumeric string)&lt;br /&gt;
#Paste it in the PostmarkApp configuration page under &amp;quot;Server API Token&amp;quot;&lt;br /&gt;
#Click &#039;&#039;&#039;Validate&#039;&#039;&#039; to test the connection&lt;br /&gt;
#If successful, you&#039;ll see a green confirmation message&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Security Note:&#039;&#039;&#039; The token is stored encrypted in Dolibarr&#039;s constants table.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Message Stream&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Select the Postmark message stream to use&lt;br /&gt;
  * Default: &amp;quot;outbound&amp;quot; (transactional emails)&lt;br /&gt;
  * Alternative: &amp;quot;broadcast&amp;quot; (marketing emails)&lt;br /&gt;
  * Streams are automatically loaded from your Postmark account&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Track Opens&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable/disable open tracking&lt;br /&gt;
  * When enabled, Postmark tracks when emails are opened&lt;br /&gt;
  * Only the first open is tracked (PostFirstOpenOnly)&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Track Clicks&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable/disable click tracking&lt;br /&gt;
  * &#039;&#039;&#039;Requires HTML emails&#039;&#039;&#039; - plain text emails cannot track clicks&lt;br /&gt;
  * When enabled, all links in emails are rewritten by Postmark for tracking&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Replace Dolibarr Mailer&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * Enable to route ALL Dolibarr emails through Postmark&lt;br /&gt;
  * When disabled, Dolibarr uses its native email system&lt;br /&gt;
  * Recommended: Keep enabled for consistent tracking&lt;br /&gt;
&lt;br /&gt;
===Step 3: Webhook Configuration (Optional but Recommended)===&lt;br /&gt;
&lt;br /&gt;
Webhooks allow Postmark to notify Dolibarr in real-time when email events occur.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Ensure your Server API Token is validated&lt;br /&gt;
#Click &#039;&#039;&#039;Create Webhook Automatically&#039;&#039;&#039;&lt;br /&gt;
#The module will:&lt;br /&gt;
&lt;br /&gt;
  * Generate the webhook URL (format: &amp;lt;code&amp;gt;https://yourdomain.com/dolibarr/custom/postmarkapp/webhook.php&amp;lt;/code&amp;gt;)&lt;br /&gt;
  * Create the webhook in Postmark via API&lt;br /&gt;
  * Configure it to listen for: Delivery, Open (First Open Only), Click, Bounce, Spam Complaint&lt;br /&gt;
&lt;br /&gt;
#You&#039;ll see a confirmation message with the webhook ID&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manual Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Copy the webhook URL displayed in the configuration page&lt;br /&gt;
#Log in to Postmark dashboard&lt;br /&gt;
#Go to &#039;&#039;&#039;Servers &amp;gt; Your Server &amp;gt; Webhooks&#039;&#039;&#039;&lt;br /&gt;
#Click &#039;&#039;&#039;Add Webhook&#039;&#039;&#039;&lt;br /&gt;
#Paste the URL&lt;br /&gt;
#Enable the following triggers:&lt;br /&gt;
&lt;br /&gt;
  * Delivery&lt;br /&gt;
  * Open (select &amp;quot;First Open Only&amp;quot;)&lt;br /&gt;
  * Click&lt;br /&gt;
  * Bounce&lt;br /&gt;
  * Spam Complaint&lt;br /&gt;
&lt;br /&gt;
#Save the webhook&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Testing Webhooks:&#039;&#039;&#039;&lt;br /&gt;
The configuration page includes test buttons to simulate webhook events:&lt;br /&gt;
&lt;br /&gt;
*Test Delivery&lt;br /&gt;
*Test Open&lt;br /&gt;
*Test Click&lt;br /&gt;
*Test Bounce&lt;br /&gt;
&lt;br /&gt;
These send test payloads to your webhook endpoint for verification.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Testing===&lt;br /&gt;
&lt;br /&gt;
#Click &#039;&#039;&#039;Test Connection&#039;&#039;&#039; to verify API connectivity&lt;br /&gt;
#Click &#039;&#039;&#039;Send Test Email&#039;&#039;&#039; to send a test email to your logged-in user&#039;s email address&lt;br /&gt;
#The test email includes:&lt;br /&gt;
&lt;br /&gt;
  * HTML and plain text versions&lt;br /&gt;
  * A trackable link to test click tracking&lt;br /&gt;
  * Metadata for webhook linking&lt;br /&gt;
&lt;br /&gt;
#Check your email inbox and verify delivery&lt;br /&gt;
#Use the webhook test buttons to verify event processing&lt;br /&gt;
&lt;br /&gt;
==MultiCompany Compatibility==&lt;br /&gt;
&lt;br /&gt;
PostmarkApp is fully compatible with Dolibarr&#039;s MultiCompany module.&lt;br /&gt;
&lt;br /&gt;
===How It Works===&lt;br /&gt;
&lt;br /&gt;
*Each email event is stored with an &amp;lt;code&amp;gt;entity&amp;lt;/code&amp;gt; field&lt;br /&gt;
*By default, events are isolated per entity (entity = current entity)&lt;br /&gt;
*Events can be shared between entities if MultiCompany sharing is enabled&lt;br /&gt;
&lt;br /&gt;
===Configuration===&lt;br /&gt;
&lt;br /&gt;
#Enable the MultiCompany module in Dolibarr&lt;br /&gt;
#Go to &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; MultiCompany &amp;gt; Options&#039;&#039;&#039;&lt;br /&gt;
#Find the &amp;quot;PostmarkApp Events&amp;quot; sharing option&lt;br /&gt;
#Enable/disable sharing as needed&lt;br /&gt;
&lt;br /&gt;
===Sharing Behavior===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Sharing Disabled&#039;&#039;&#039;: Each entity only sees its own email events&lt;br /&gt;
*&#039;&#039;&#039;Sharing Enabled&#039;&#039;&#039;: Events can be shared between entities (entity IN (0, entity1, entity2, ...))&lt;br /&gt;
*The webhook automatically uses the entity from the original &amp;quot;Sent&amp;quot; event&lt;br /&gt;
&lt;br /&gt;
===Entity Assignment===&lt;br /&gt;
&lt;br /&gt;
*When an email is sent, the event is assigned to the current entity (&amp;lt;code&amp;gt;$conf-&amp;gt;entity&amp;lt;/code&amp;gt;)&lt;br /&gt;
*Webhook events inherit the entity from the original &amp;quot;Sent&amp;quot; event&lt;br /&gt;
*This ensures proper data isolation and sharing&lt;br /&gt;
&lt;br /&gt;
==Technical Architecture==&lt;br /&gt;
&lt;br /&gt;
===Module Structure===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
postmarkapp/&lt;br /&gt;
├── core/&lt;br /&gt;
│   └── modules/&lt;br /&gt;
│       └── modPostmarkApp.class.php    # Module descriptor&lt;br /&gt;
├── class/&lt;br /&gt;
│   └── actions_postmarkapp.class.php   # Hook handlers&lt;br /&gt;
├── lib/&lt;br /&gt;
│   └── class/&lt;br /&gt;
│       └── postmarkappmail.class.php   # Postmark API wrapper&lt;br /&gt;
├── admin/&lt;br /&gt;
│   └── setup.php                       # Configuration page&lt;br /&gt;
├── events.php                           # Events list page&lt;br /&gt;
├── webhook.php                          # Webhook endpoint&lt;br /&gt;
└── langs/&lt;br /&gt;
    └── [lang]/&lt;br /&gt;
        └── postmarkapp.lang            # Translations&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hooks System===&lt;br /&gt;
&lt;br /&gt;
The module uses Dolibarr&#039;s hook system to intercept email sending:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Hook Name&#039;&#039;&#039;: &amp;lt;code&amp;gt;sendMail&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Hook File&#039;&#039;&#039;: &amp;lt;code&amp;gt;class/actions_postmarkapp.class.php&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Hook Method&#039;&#039;&#039;: &amp;lt;code&amp;gt;sendMail($parameters, &amp;amp;$object, &amp;amp;$action, $hookmanager)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How It Works:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Dolibarr prepares to send an email via &amp;lt;code&amp;gt;CMailFile&amp;lt;/code&amp;gt;&lt;br /&gt;
#The hook intercepts the email before native sending&lt;br /&gt;
#Extracts email data (to, subject, body, attachments, etc.)&lt;br /&gt;
#Sends email via Postmark API using &amp;lt;code&amp;gt;PostmarkAppMail&amp;lt;/code&amp;gt; class&lt;br /&gt;
#Logs the &amp;quot;Sent&amp;quot; event to database&lt;br /&gt;
#Returns 1 to prevent native Dolibarr email sending&lt;br /&gt;
&lt;br /&gt;
===API Integration===&lt;br /&gt;
&lt;br /&gt;
The module uses Postmark&#039;s REST API:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Base URL&#039;&#039;&#039;: &amp;lt;code&amp;gt;https://api.postmarkapp.com&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;Authentication&#039;&#039;&#039;: &amp;lt;code&amp;gt;X-Postmark-Server-Token&amp;lt;/code&amp;gt; header&lt;br /&gt;
*&#039;&#039;&#039;Endpoints Used&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
  * &amp;lt;code&amp;gt;POST /email&amp;lt;/code&amp;gt; - Send email&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /server&amp;lt;/code&amp;gt; - Test connection&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /message-streams&amp;lt;/code&amp;gt; - List streams&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /senders&amp;lt;/code&amp;gt; - List sender signatures&lt;br /&gt;
  * &amp;lt;code&amp;gt;GET /webhooks&amp;lt;/code&amp;gt; - List webhooks&lt;br /&gt;
  * &amp;lt;code&amp;gt;POST /webhooks&amp;lt;/code&amp;gt; - Create webhook&lt;br /&gt;
&lt;br /&gt;
===Database Schema===&lt;br /&gt;
&lt;br /&gt;
The module creates one custom table: &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Column!!Type!!Null!!Default!!Description&lt;br /&gt;
|-&lt;br /&gt;
|rowid||INTEGER||NO||AUTO_INCREMENT||Primary key&lt;br /&gt;
|-&lt;br /&gt;
|email_id||VARCHAR(255)||NO|| ||Postmark MessageID (unique identifier)&lt;br /&gt;
|-&lt;br /&gt;
|event_type||VARCHAR(50)||NO|| ||Event type (Sent, Delivery, Open, Click, Bounce, SpamComplaint)&lt;br /&gt;
|-&lt;br /&gt;
|recipient||VARCHAR(255)||YES||NULL||Email recipient address&lt;br /&gt;
|-&lt;br /&gt;
|subject||VARCHAR(255)||YES||NULL||Email subject line&lt;br /&gt;
|-&lt;br /&gt;
|fk_soc||INTEGER||YES||NULL||Linked third party ID (llx_societe.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|fk_contact||INTEGER||YES||NULL||Linked contact ID (llx_socpeople.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|fk_element||INTEGER||YES||NULL||Linked element ID (depends on element_type)&lt;br /&gt;
|-&lt;br /&gt;
|element_type||VARCHAR(50)||YES||NULL||Element type (propal, facture, commande, etc.)&lt;br /&gt;
|-&lt;br /&gt;
|fk_user||INTEGER||YES||NULL||User ID who sent the email (for event ownership)&lt;br /&gt;
|-&lt;br /&gt;
|fk_actioncomm||INTEGER||YES||NULL||Linked ActionComm ID (llx_actioncomm.rowid)&lt;br /&gt;
|-&lt;br /&gt;
|event_data||TEXT||YES||NULL||JSON data from webhook (full payload)&lt;br /&gt;
|-&lt;br /&gt;
|entity||INTEGER||NO||1||Entity ID (for MultiCompany)&lt;br /&gt;
|-&lt;br /&gt;
|date_creation||DATETIME||NO|| ||Event timestamp&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Indexes:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_email_id&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;email_id&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_event_type&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;event_type&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_date_creation&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;date_creation&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_soc&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_soc&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_contact&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_contact&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_element&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_fk_user&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;fk_user&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;idx_entity&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;entity&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Supported Object Types===&lt;br /&gt;
&lt;br /&gt;
The module can link email events to various Dolibarr objects:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Object Type!!Description!!Table&lt;br /&gt;
|-&lt;br /&gt;
|propal||Customer Proposal||llx_propal&lt;br /&gt;
|-&lt;br /&gt;
|commande||Customer Order||llx_commande&lt;br /&gt;
|-&lt;br /&gt;
|facture||Customer Invoice||llx_facture&lt;br /&gt;
|-&lt;br /&gt;
|expedition||Shipment||llx_expedition&lt;br /&gt;
|-&lt;br /&gt;
|contrat||Contract||llx_contrat&lt;br /&gt;
|-&lt;br /&gt;
|fichinter||Intervention||llx_fichinter&lt;br /&gt;
|-&lt;br /&gt;
|facture_fourn||Supplier Invoice||llx_facture_fourn&lt;br /&gt;
|-&lt;br /&gt;
|order_supplier||Supplier Order||llx_commande_fournisseur&lt;br /&gt;
|-&lt;br /&gt;
|supplier_proposal||Supplier Proposal||llx_supplier_proposal&lt;br /&gt;
|-&lt;br /&gt;
|project||Project||llx_projet&lt;br /&gt;
|-&lt;br /&gt;
|ticket||Ticket||llx_ticket&lt;br /&gt;
|-&lt;br /&gt;
|member||Member||llx_adherent&lt;br /&gt;
|-&lt;br /&gt;
|reception||Reception||llx_reception&lt;br /&gt;
|-&lt;br /&gt;
|expensereport||Expense Report||llx_expensereport&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Automatic Triggers===&lt;br /&gt;
&lt;br /&gt;
The module registers 6 automatic triggers in Dolibarr&#039;s Agenda system:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Trigger Code!!Label Key!!Description Key!!Rang&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_SENT||PostmarkTriggerSent||PostmarkTriggerSentDesc||50100&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_DELIVERY||PostmarkTriggerDelivery||PostmarkTriggerDeliveryDesc||50101&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_OPEN||PostmarkTriggerOpen||PostmarkTriggerOpenDesc||50102&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_CLICK||PostmarkTriggerClick||PostmarkTriggerClickDesc||50103&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_BOUNCE||PostmarkTriggerBounce||PostmarkTriggerBounceDesc||50104&lt;br /&gt;
|-&lt;br /&gt;
|POSTMARK_SPAMCOMPLAINT||PostmarkTriggerSpam||PostmarkTriggerSpamDesc||50105&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
These triggers are:&lt;br /&gt;
&lt;br /&gt;
*Automatically registered on module activation&lt;br /&gt;
*Automatically enabled (constants &amp;lt;code&amp;gt;MAIN_AGENDA_ACTIONAUTO_*&amp;lt;/code&amp;gt; set to 1)&lt;br /&gt;
*Configurable in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
*Can trigger custom workflows based on email events&lt;br /&gt;
&lt;br /&gt;
===Permissions===&lt;br /&gt;
&lt;br /&gt;
The module defines two permissions:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;postmarkapp_read&#039;&#039;&#039;: View email events (required for events list page)&lt;br /&gt;
*&#039;&#039;&#039;postmarkapp_setup&#039;&#039;&#039;: Configure the module (required for setup page)&lt;br /&gt;
&lt;br /&gt;
Permissions are checked using:&lt;br /&gt;
&amp;lt;code&amp;gt;if ($user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;read&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;if ($user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;setup&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Webhook Processing===&lt;br /&gt;
&lt;br /&gt;
The webhook endpoint (&amp;lt;code&amp;gt;webhook.php&amp;lt;/code&amp;gt;) processes incoming Postmark events:&lt;br /&gt;
&lt;br /&gt;
#Receives POST request from Postmark with JSON payload&lt;br /&gt;
#Validates webhook signature (optional, if configured)&lt;br /&gt;
#Extracts event data (type, recipient, message ID, metadata)&lt;br /&gt;
#Searches for original &amp;quot;Sent&amp;quot; event by MessageID&lt;br /&gt;
#Retrieves linked objects (third party, contact, element) from original event&lt;br /&gt;
#Creates ActionComm event in Dolibarr&#039;s Agenda&lt;br /&gt;
#Sets event ownership to original sender&#039;s user ID&lt;br /&gt;
#Links event to original ActionComm (parent-child relationship)&lt;br /&gt;
#Stores detailed event data in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Returns HTTP 200 to Postmark&lt;br /&gt;
&lt;br /&gt;
===SQL Queries and MultiCompany===&lt;br /&gt;
&lt;br /&gt;
All SQL queries use &amp;lt;code&amp;gt;getEntity()&amp;lt;/code&amp;gt; function for MultiCompany compatibility:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;SELECT * FROM llx_postmarkapp_events WHERE entity IN (getEntity(&#039;postmarkapp_events&#039;))&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This ensures:&lt;br /&gt;
&lt;br /&gt;
*Data isolation per entity (by default)&lt;br /&gt;
*Data sharing when MultiCompany sharing is enabled&lt;br /&gt;
*Proper entity assignment on insert&lt;br /&gt;
&lt;br /&gt;
==How It Works==&lt;br /&gt;
&lt;br /&gt;
===Email Sending Flow===&lt;br /&gt;
&lt;br /&gt;
#User triggers email sending in Dolibarr (e.g., sending an invoice)&lt;br /&gt;
#Dolibarr prepares &amp;lt;code&amp;gt;CMailFile&amp;lt;/code&amp;gt; object with email data&lt;br /&gt;
#PostmarkApp hook intercepts via &amp;lt;code&amp;gt;sendMail&amp;lt;/code&amp;gt; hook&lt;br /&gt;
#Module extracts:&lt;br /&gt;
&lt;br /&gt;
  * Recipient(s), subject, body (HTML/text), attachments&lt;br /&gt;
  * Linked objects (from &amp;lt;code&amp;gt;trackid&amp;lt;/code&amp;gt; or metadata)&lt;br /&gt;
  * Current user ID (for event ownership)&lt;br /&gt;
&lt;br /&gt;
#Email sent via Postmark API&lt;br /&gt;
#Postmark returns MessageID&lt;br /&gt;
#Module logs &amp;quot;Sent&amp;quot; event to database with:&lt;br /&gt;
&lt;br /&gt;
  * MessageID, recipient, subject, linked objects, user ID, entity&lt;br /&gt;
&lt;br /&gt;
#Returns 1 to prevent native Dolibarr email sending&lt;br /&gt;
&lt;br /&gt;
===Webhook Event Flow===&lt;br /&gt;
&lt;br /&gt;
#Postmark detects email event (delivery, open, click, bounce, spam)&lt;br /&gt;
#Postmark sends POST request to webhook URL with JSON payload&lt;br /&gt;
#Webhook endpoint receives and validates request&lt;br /&gt;
#Searches for original &amp;quot;Sent&amp;quot; event using MessageID&lt;br /&gt;
#Retrieves:&lt;br /&gt;
&lt;br /&gt;
  * Linked objects (third party, contact, element)&lt;br /&gt;
  * User ID who sent the email&lt;br /&gt;
  * Entity ID&lt;br /&gt;
  * Original ActionComm ID&lt;br /&gt;
&lt;br /&gt;
#Creates new ActionComm event:&lt;br /&gt;
&lt;br /&gt;
  * Type: AC_EMAIL&lt;br /&gt;
  * Code: POSTMARK_[EVENT_TYPE]&lt;br /&gt;
  * Label: Translated event label&lt;br /&gt;
  * Owner: Original sender&#039;s user ID&lt;br /&gt;
  * Parent: Original ActionComm ID&lt;br /&gt;
  * Linked to: Third party, contact, element&lt;br /&gt;
&lt;br /&gt;
#Stores event in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Returns success to Postmark&lt;br /&gt;
&lt;br /&gt;
===Event Linking===&lt;br /&gt;
&lt;br /&gt;
Events are automatically linked to Dolibarr objects:&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;From trackid&#039;&#039;&#039;: Parses Dolibarr&#039;s trackid format (e.g., &amp;quot;pro1&amp;quot; = proposal ID 1)&lt;br /&gt;
*&#039;&#039;&#039;From metadata&#039;&#039;&#039;: Extracts &amp;lt;code&amp;gt;fk_soc&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_contact&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;fk_element&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;element_type&amp;lt;/code&amp;gt;&lt;br /&gt;
*&#039;&#039;&#039;From recipient email&#039;&#039;&#039;: Searches third parties and contacts by email address&lt;br /&gt;
*&#039;&#039;&#039;From MessageID&#039;&#039;&#039;: Webhook events link to original &amp;quot;Sent&amp;quot; event via MessageID&lt;br /&gt;
&lt;br /&gt;
==Event Types==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Event Type!!Description!!When It Occurs!!Dolibarr Code!!ActionComm Type&lt;br /&gt;
|-&lt;br /&gt;
|Sent||Email sent via Postmark||Immediately after API call||POSTMARK_SENT||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Delivery||Email delivered||When recipient&#039;s server accepts||POSTMARK_DELIVERY||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Open||Email opened||First time recipient opens email||POSTMARK_OPEN||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Click||Link clicked||When recipient clicks a tracked link||POSTMARK_CLICK||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Bounce||Delivery failed||Email rejected by recipient&#039;s server||POSTMARK_BOUNCE||AC_EMAIL&lt;br /&gt;
|-&lt;br /&gt;
|Spam Complaint||Marked as spam||Recipient reports email as spam||POSTMARK_SPAMCOMPLAINT||AC_EMAIL&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
===Emails Not Sending===&lt;br /&gt;
&lt;br /&gt;
#Verify &amp;lt;code&amp;gt;POSTMARKAPP_REPLACE_MAILER&amp;lt;/code&amp;gt; constant is set to 1&lt;br /&gt;
#Check Server API Token is valid (use &amp;quot;Test Connection&amp;quot; button)&lt;br /&gt;
#Verify &amp;quot;From&amp;quot; email address is a verified Sender Signature in Postmark&lt;br /&gt;
#Check Dolibarr logs (&amp;lt;code&amp;gt;dolibarr.log&amp;lt;/code&amp;gt;) for error messages&lt;br /&gt;
#Ensure cURL extension is enabled in PHP&lt;br /&gt;
#Verify internet connectivity from server to Postmark API&lt;br /&gt;
&lt;br /&gt;
===Webhooks Not Received===&lt;br /&gt;
&lt;br /&gt;
#Verify webhook URL is accessible from internet (test with curl or browser)&lt;br /&gt;
#Check webhook is created in Postmark dashboard&lt;br /&gt;
#Verify webhook triggers are enabled (Delivery, Open, Click, Bounce, Spam)&lt;br /&gt;
#Test webhooks using built-in test buttons in configuration page&lt;br /&gt;
#Check server logs for incoming POST requests to &amp;lt;code&amp;gt;webhook.php&amp;lt;/code&amp;gt;&lt;br /&gt;
#Verify webhook URL doesn&#039;t require authentication (webhook uses NOLOGIN)&lt;br /&gt;
&lt;br /&gt;
===Click Tracking Not Working===&lt;br /&gt;
&lt;br /&gt;
*Click tracking requires emails to be sent in HTML format&lt;br /&gt;
*Plain text emails cannot track clicks&lt;br /&gt;
*Ensure &amp;lt;code&amp;gt;MAIN_MAIL_FORCE_CONTENT_TYPE_TO_HTML&amp;lt;/code&amp;gt; is enabled&lt;br /&gt;
*Verify &amp;quot;Track Clicks&amp;quot; option is enabled in configuration&lt;br /&gt;
*Check that links in emails are not already rewritten by another system&lt;br /&gt;
&lt;br /&gt;
===Events Not Appearing in Agenda===&lt;br /&gt;
&lt;br /&gt;
#Verify Agenda module is enabled&lt;br /&gt;
#Check automatic triggers are enabled in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; Agenda &amp;gt; Automatic events&#039;&#039;&#039;&lt;br /&gt;
#Verify user has permission to view ActionComm events&lt;br /&gt;
#Check &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table has data&lt;br /&gt;
#Verify webhook is receiving and processing events (check logs)&lt;br /&gt;
&lt;br /&gt;
===MultiCompany Issues===&lt;br /&gt;
&lt;br /&gt;
#Verify MultiCompany module is enabled&lt;br /&gt;
#Check entity field exists in &amp;lt;code&amp;gt;llx_postmarkapp_events&amp;lt;/code&amp;gt; table&lt;br /&gt;
#Verify sharing configuration in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; MultiCompany &amp;gt; Options&#039;&#039;&#039;&lt;br /&gt;
#Check SQL queries use &amp;lt;code&amp;gt;getEntity(&#039;postmarkapp_events&#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
#Verify entity is correctly assigned on email send&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add screenshots here when available --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.2 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Added MultiCompany compatibility&lt;br /&gt;
*Added entity field to database&lt;br /&gt;
*Implemented getEntity() in all SQL queries&lt;br /&gt;
*Added MultiCompany sharing configuration&lt;br /&gt;
*Added user ownership for events (fk_user field)&lt;br /&gt;
*Enhanced object type support (supplier invoices, orders, projects, tickets, etc.)&lt;br /&gt;
*Improved event linking (from trackid, metadata, recipient email)&lt;br /&gt;
*Simplified event notes and labels&lt;br /&gt;
*Removed duplicate &amp;quot;Sent&amp;quot; event (relies on Dolibarr&#039;s native system)&lt;br /&gt;
*Added bilingual documentation&lt;br /&gt;
*Added multi-language support (7 languages)&lt;br /&gt;
*Added automatic trigger activation&lt;br /&gt;
*Enhanced webhook processing with entity inheritance&lt;br /&gt;
*Added comprehensive event filters&lt;br /&gt;
*Added reference search for linked objects&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.0 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Initial release&lt;br /&gt;
*Postmark API integration&lt;br /&gt;
*Webhook handling&lt;br /&gt;
*Event tracking&lt;br /&gt;
*Agenda integration&lt;br /&gt;
*Object linking&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
*[https://postmarkapp.com Postmark Official Website]&lt;br /&gt;
*[https://lysis.net Lysis - Developer Website]&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
This module is distributed under the [https://www.gnu.org/licenses/gpl-3.0 GNU General Public License v3 (GPLv3)].&lt;br /&gt;
&lt;br /&gt;
==Professional Services / Services professionnels==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Need help with setup?&#039;&#039;&#039; We can assist you with:&lt;br /&gt;
&lt;br /&gt;
*Installation and configuration of the PostmarkApp module&lt;br /&gt;
*Postmark account setup and sender signature verification&lt;br /&gt;
*Webhook configuration and testing&lt;br /&gt;
*Integration with your existing Dolibarr workflows&lt;br /&gt;
*MultiCompany configuration and data migration&lt;br /&gt;
*Custom development and feature requests&lt;br /&gt;
*Training for your team&lt;br /&gt;
&lt;br /&gt;
Contact us for a personalized quote: alex@lysis.net&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Besoin d&#039;aide pour le paramétrage ?&#039;&#039;&#039; Nous pouvons vous accompagner pour&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*L&#039;installation et la configuration du module PostmarkApp&lt;br /&gt;
*La création de votre compte Postmark et la vérification des signatures d&#039;expéditeur&lt;br /&gt;
*La configuration et les tests des webhooks&lt;br /&gt;
*L&#039;intégration avec vos processus Dolibarr existants&lt;br /&gt;
*La configuration MultiCompany et la migration de données&lt;br /&gt;
*Le développement sur mesure et les demandes de fonctionnalités&lt;br /&gt;
*La formation de vos équipes&lt;br /&gt;
&lt;br /&gt;
Contactez-nous pour un devis personnalisé&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alex BORDARAUD&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Website: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
[[Category:External module]]&lt;br /&gt;
[[Category:Communication module]]&lt;br /&gt;
[[Category:Email module]]&lt;br /&gt;
[[Category:MultiCompany compatible]]&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65140</id>
		<title>Module PostmarkApp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65140"/>
		<updated>2026-01-06T13:29:59Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;PostmarkApp&#039;&#039;&#039; is a Dolibarr module that replaces the native email sending system with [https://postmarkapp.com Postmark], a professional transactional email service.&lt;br /&gt;
&lt;br /&gt;
==Why use PostmarkApp?==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Legal proof and dispute resolution&#039;&#039;&#039;: Having precise tracking of email delivery, opening, and link clicks provides valuable evidence in case of disputes. You can prove that:&lt;br /&gt;
&lt;br /&gt;
*An invoice or quote was successfully delivered to your client&lt;br /&gt;
*The recipient opened the email and read it&lt;br /&gt;
*They clicked on links (payment, validation, etc.)&lt;br /&gt;
&lt;br /&gt;
This traceability is essential for businesses that need to demonstrate that important information was transmitted and received.&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preuve, traçabilité et résolution de litiges&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Disposer d&#039;un suivi précis de la livraison, de l&#039;ouverture et des clics sur les liens de vos emails constitue une preuve précieuse en cas de litige. Vous pouvez prouver que&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*Une facture ou un devis a bien été délivré à votre client&lt;br /&gt;
*Le destinataire a ouvert l&#039;email et l&#039;a lu&lt;br /&gt;
*Il a cliqué sur les liens (paiement, validation, etc.)&lt;br /&gt;
&lt;br /&gt;
Cette traçabilité est essentielle pour les entreprises qui doivent démontrer que des informations importantes ont été transmises et reçues.&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Email Sending via Postmark API&#039;&#039;&#039; - All Dolibarr emails are sent through Postmark&lt;br /&gt;
*&#039;&#039;&#039;Delivery Tracking&#039;&#039;&#039; - Know when your emails are delivered&lt;br /&gt;
*&#039;&#039;&#039;Open Tracking&#039;&#039;&#039; - Track when recipients open your emails (first open only)&lt;br /&gt;
*&#039;&#039;&#039;Click Tracking&#039;&#039;&#039; - Monitor which links are clicked in your emails&lt;br /&gt;
*&#039;&#039;&#039;Bounce Handling&#039;&#039;&#039; - Automatically handle bounced emails&lt;br /&gt;
*&#039;&#039;&#039;Spam Complaint Tracking&#039;&#039;&#039; - Be notified of spam complaints&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr Events Integration&#039;&#039;&#039; - All email events are logged in Dolibarr&#039;s Agenda module&lt;br /&gt;
*&#039;&#039;&#039;Object Linking&#039;&#039;&#039; - Events are linked to related Dolibarr objects (invoices, proposals, orders, etc.)&lt;br /&gt;
*&#039;&#039;&#039;Multi-language&#039;&#039;&#039; - Available in 7 languages (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
*Dolibarr 19.0 or higher&lt;br /&gt;
*PHP 7.1 or higher with cURL extension&lt;br /&gt;
*Postmark account with Server API Token&lt;br /&gt;
*Agenda module must be enabled&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
#Download the module package &amp;lt;code&amp;gt;module_postmarkapp-x.y.z.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
#Extract to &amp;lt;code&amp;gt;htdocs/custom/postmarkapp/&amp;lt;/code&amp;gt; or use Dolibarr&#039;s module deployment feature&lt;br /&gt;
#Go to &#039;&#039;&#039;Home &amp;gt; Setup &amp;gt; Modules/Applications&#039;&#039;&#039;&lt;br /&gt;
#Search for &amp;quot;PostmarkApp&amp;quot; and enable the module&lt;br /&gt;
#Configure the module in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; PostmarkApp &amp;gt; Settings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
===Step 1: Server API Token===&lt;br /&gt;
&lt;br /&gt;
#Log in to your Postmark account at https://postmarkapp.com&lt;br /&gt;
#Select your server&lt;br /&gt;
#Go to &#039;&#039;&#039;API Tokens&#039;&#039;&#039; tab&lt;br /&gt;
#Copy the &#039;&#039;&#039;Server API Token&#039;&#039;&#039;&lt;br /&gt;
#Paste it in the PostmarkApp configuration page&lt;br /&gt;
#Click &#039;&#039;&#039;Validate&#039;&#039;&#039; to test the connection&lt;br /&gt;
&lt;br /&gt;
===Step 2: Options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Message Stream&#039;&#039;&#039;: Select the message stream to use (default: &amp;quot;outbound&amp;quot;)&lt;br /&gt;
*&#039;&#039;&#039;Track Opens&#039;&#039;&#039;: Enable/disable open tracking&lt;br /&gt;
*&#039;&#039;&#039;Track Clicks&#039;&#039;&#039;: Enable/disable click tracking (requires HTML emails)&lt;br /&gt;
*&#039;&#039;&#039;Replace Dolibarr Mailer&#039;&#039;&#039;: Enable to route all emails through Postmark&lt;br /&gt;
&lt;br /&gt;
===Step 3: Webhook===&lt;br /&gt;
&lt;br /&gt;
Webhooks allow Postmark to notify Dolibarr of email events in real-time.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Click &#039;&#039;&#039;Create Webhook Automatically&#039;&#039;&#039;&lt;br /&gt;
*The webhook URL will be registered with Postmark&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manual Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Copy the webhook URL displayed in the configuration&lt;br /&gt;
#Go to Postmark &amp;gt; Servers &amp;gt; Your Server &amp;gt; Webhooks&lt;br /&gt;
#Add a new webhook with the copied URL&lt;br /&gt;
#Enable: Delivery, Open (First Open Only), Click, Bounce, Spam Complaint&lt;br /&gt;
&lt;br /&gt;
==How it works==&lt;br /&gt;
&lt;br /&gt;
Once enabled, all emails sent from Dolibarr will be routed through Postmark. The module intercepts the native email sending and replaces it with Postmark&#039;s API.&lt;br /&gt;
&lt;br /&gt;
When a webhook is configured, Postmark will notify your Dolibarr installation of email events:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Event!!Description!!Dolibarr Code&lt;br /&gt;
|-&lt;br /&gt;
|Sent||Email sent via Postmark||POSTMARK_SENT&lt;br /&gt;
|-&lt;br /&gt;
|Delivered||Email delivered to recipient&#039;s server||POSTMARK_DELIVERY&lt;br /&gt;
|-&lt;br /&gt;
|Opened||Recipient opened the email||POSTMARK_OPEN&lt;br /&gt;
|-&lt;br /&gt;
|Clicked||Recipient clicked a link||POSTMARK_CLICK&lt;br /&gt;
|-&lt;br /&gt;
|Bounced||Email could not be delivered||POSTMARK_BOUNCE&lt;br /&gt;
|-&lt;br /&gt;
|Spam||Recipient marked as spam||POSTMARK_SPAM_COMPLAINT&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each event creates an entry in Dolibarr&#039;s Agenda, linked to the original object.&lt;br /&gt;
&lt;br /&gt;
==Database==&lt;br /&gt;
&lt;br /&gt;
The module creates one custom table:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Column!!Type!!Description&lt;br /&gt;
|-&lt;br /&gt;
|rowid||INTEGER||Primary key&lt;br /&gt;
|-&lt;br /&gt;
|email_id||VARCHAR(255)||Postmark MessageID&lt;br /&gt;
|-&lt;br /&gt;
|event_type||VARCHAR(50)||Event type&lt;br /&gt;
|-&lt;br /&gt;
|recipient||VARCHAR(255)||Email recipient&lt;br /&gt;
|-&lt;br /&gt;
|subject||VARCHAR(255)||Email subject&lt;br /&gt;
|-&lt;br /&gt;
|fk_soc||INTEGER||Linked third party ID&lt;br /&gt;
|-&lt;br /&gt;
|fk_contact||INTEGER||Linked contact ID&lt;br /&gt;
|-&lt;br /&gt;
|fk_element||INTEGER||Linked element ID&lt;br /&gt;
|-&lt;br /&gt;
|element_type||VARCHAR(50)||Element type (propal, facture, etc.)&lt;br /&gt;
|-&lt;br /&gt;
|fk_actioncomm||INTEGER||Linked ActionComm ID&lt;br /&gt;
|-&lt;br /&gt;
|event_data||TEXT||JSON data from webhook&lt;br /&gt;
|-&lt;br /&gt;
|date_creation||DATETIME||Event timestamp&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
===Emails not sending===&lt;br /&gt;
&lt;br /&gt;
#Check that &amp;lt;code&amp;gt;POSTMARKAPP_REPLACE_MAILER&amp;lt;/code&amp;gt; is enabled&lt;br /&gt;
#Verify the Server API Token is valid&lt;br /&gt;
#Check Dolibarr logs for error messages&lt;br /&gt;
#Ensure the &amp;quot;From&amp;quot; address is a verified Sender Signature in Postmark&lt;br /&gt;
&lt;br /&gt;
===Webhooks not received===&lt;br /&gt;
&lt;br /&gt;
#Verify the webhook URL is accessible from the internet&lt;br /&gt;
#Check that webhooks are created in Postmark dashboard&lt;br /&gt;
#Test webhooks using the built-in test buttons&lt;br /&gt;
#Check server logs for incoming requests&lt;br /&gt;
&lt;br /&gt;
===Click tracking not working===&lt;br /&gt;
&lt;br /&gt;
Click tracking requires emails to be sent in HTML format. Plain text emails cannot track clicks.&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add screenshots here --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.2 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Simplified event notes and labels&lt;br /&gt;
*Removed duplicate &amp;quot;Sent&amp;quot; event&lt;br /&gt;
*Added bilingual documentation&lt;br /&gt;
*Added multi-language support&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
*[https://postmarkapp.com Postmark Official Website]&lt;br /&gt;
*[https://lysis.net Lysis - Developer Website]&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
This module is distributed under the [https://www.gnu.org/licenses/gpl-3.0 GNU General Public License v3 (GPLv3)].&lt;br /&gt;
&lt;br /&gt;
==Professional Services / Services professionnels==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Need help with setup?&#039;&#039;&#039; We can assist you with:&lt;br /&gt;
&lt;br /&gt;
*Installation and configuration of the PostmarkApp module&lt;br /&gt;
*Postmark account setup and sender signature verification&lt;br /&gt;
*Webhook configuration and testing&lt;br /&gt;
*Integration with your existing Dolibarr workflows&lt;br /&gt;
*Training for your team&lt;br /&gt;
&lt;br /&gt;
Contact us for a personalized quote.&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Besoin d&#039;aide pour le paramétrage ?&#039;&#039;&#039; Nous pouvons vous accompagner pour&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*L&#039;installation et la configuration du module PostmarkApp&lt;br /&gt;
*La création de votre compte Postmark et la vérification des signatures d&#039;expéditeur&lt;br /&gt;
*La configuration et les tests des webhooks&lt;br /&gt;
*L&#039;intégration avec vos processus Dolibarr existants&lt;br /&gt;
*La formation de vos équipes&lt;br /&gt;
&lt;br /&gt;
Contactez-nous pour un devis personnalisé.&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alex BORDARAUD&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Website: https://lysis.net&lt;br /&gt;
[[Category:Modules complémentaires]]&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65139</id>
		<title>Module PostmarkApp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65139"/>
		<updated>2026-01-06T13:29:42Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dolibarr module&lt;br /&gt;
|name=PostmarkApp&lt;br /&gt;
|logo=&lt;br /&gt;
|developer=Alex BORDARAUD - Lysis&lt;br /&gt;
|contact=alex@lysis.net&lt;br /&gt;
|website=https://lysis.net&lt;br /&gt;
|dolistore=&lt;br /&gt;
|version=1.5.2&lt;br /&gt;
|dolibarr_min=19.0&lt;br /&gt;
|dolibarr_max=&lt;br /&gt;
|license=GPLv3&lt;br /&gt;
|language=Multi (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PostmarkApp&#039;&#039;&#039; is a Dolibarr module that replaces the native email sending system with [https://postmarkapp.com Postmark], a professional transactional email service.&lt;br /&gt;
&lt;br /&gt;
==Why use PostmarkApp?==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Legal proof and dispute resolution&#039;&#039;&#039;: Having precise tracking of email delivery, opening, and link clicks provides valuable evidence in case of disputes. You can prove that:&lt;br /&gt;
&lt;br /&gt;
*An invoice or quote was successfully delivered to your client&lt;br /&gt;
*The recipient opened the email and read it&lt;br /&gt;
*They clicked on links (payment, validation, etc.)&lt;br /&gt;
&lt;br /&gt;
This traceability is essential for businesses that need to demonstrate that important information was transmitted and received.&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preuve, traçabilité et résolution de litiges&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Disposer d&#039;un suivi précis de la livraison, de l&#039;ouverture et des clics sur les liens de vos emails constitue une preuve précieuse en cas de litige. Vous pouvez prouver que&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*Une facture ou un devis a bien été délivré à votre client&lt;br /&gt;
*Le destinataire a ouvert l&#039;email et l&#039;a lu&lt;br /&gt;
*Il a cliqué sur les liens (paiement, validation, etc.)&lt;br /&gt;
&lt;br /&gt;
Cette traçabilité est essentielle pour les entreprises qui doivent démontrer que des informations importantes ont été transmises et reçues.&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Email Sending via Postmark API&#039;&#039;&#039; - All Dolibarr emails are sent through Postmark&lt;br /&gt;
*&#039;&#039;&#039;Delivery Tracking&#039;&#039;&#039; - Know when your emails are delivered&lt;br /&gt;
*&#039;&#039;&#039;Open Tracking&#039;&#039;&#039; - Track when recipients open your emails (first open only)&lt;br /&gt;
*&#039;&#039;&#039;Click Tracking&#039;&#039;&#039; - Monitor which links are clicked in your emails&lt;br /&gt;
*&#039;&#039;&#039;Bounce Handling&#039;&#039;&#039; - Automatically handle bounced emails&lt;br /&gt;
*&#039;&#039;&#039;Spam Complaint Tracking&#039;&#039;&#039; - Be notified of spam complaints&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr Events Integration&#039;&#039;&#039; - All email events are logged in Dolibarr&#039;s Agenda module&lt;br /&gt;
*&#039;&#039;&#039;Object Linking&#039;&#039;&#039; - Events are linked to related Dolibarr objects (invoices, proposals, orders, etc.)&lt;br /&gt;
*&#039;&#039;&#039;Multi-language&#039;&#039;&#039; - Available in 7 languages (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
*Dolibarr 19.0 or higher&lt;br /&gt;
*PHP 7.1 or higher with cURL extension&lt;br /&gt;
*Postmark account with Server API Token&lt;br /&gt;
*Agenda module must be enabled&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
#Download the module package &amp;lt;code&amp;gt;module_postmarkapp-x.y.z.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
#Extract to &amp;lt;code&amp;gt;htdocs/custom/postmarkapp/&amp;lt;/code&amp;gt; or use Dolibarr&#039;s module deployment feature&lt;br /&gt;
#Go to &#039;&#039;&#039;Home &amp;gt; Setup &amp;gt; Modules/Applications&#039;&#039;&#039;&lt;br /&gt;
#Search for &amp;quot;PostmarkApp&amp;quot; and enable the module&lt;br /&gt;
#Configure the module in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; PostmarkApp &amp;gt; Settings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
===Step 1: Server API Token===&lt;br /&gt;
&lt;br /&gt;
#Log in to your Postmark account at https://postmarkapp.com&lt;br /&gt;
#Select your server&lt;br /&gt;
#Go to &#039;&#039;&#039;API Tokens&#039;&#039;&#039; tab&lt;br /&gt;
#Copy the &#039;&#039;&#039;Server API Token&#039;&#039;&#039;&lt;br /&gt;
#Paste it in the PostmarkApp configuration page&lt;br /&gt;
#Click &#039;&#039;&#039;Validate&#039;&#039;&#039; to test the connection&lt;br /&gt;
&lt;br /&gt;
===Step 2: Options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Message Stream&#039;&#039;&#039;: Select the message stream to use (default: &amp;quot;outbound&amp;quot;)&lt;br /&gt;
*&#039;&#039;&#039;Track Opens&#039;&#039;&#039;: Enable/disable open tracking&lt;br /&gt;
*&#039;&#039;&#039;Track Clicks&#039;&#039;&#039;: Enable/disable click tracking (requires HTML emails)&lt;br /&gt;
*&#039;&#039;&#039;Replace Dolibarr Mailer&#039;&#039;&#039;: Enable to route all emails through Postmark&lt;br /&gt;
&lt;br /&gt;
===Step 3: Webhook===&lt;br /&gt;
&lt;br /&gt;
Webhooks allow Postmark to notify Dolibarr of email events in real-time.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Click &#039;&#039;&#039;Create Webhook Automatically&#039;&#039;&#039;&lt;br /&gt;
*The webhook URL will be registered with Postmark&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manual Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Copy the webhook URL displayed in the configuration&lt;br /&gt;
#Go to Postmark &amp;gt; Servers &amp;gt; Your Server &amp;gt; Webhooks&lt;br /&gt;
#Add a new webhook with the copied URL&lt;br /&gt;
#Enable: Delivery, Open (First Open Only), Click, Bounce, Spam Complaint&lt;br /&gt;
&lt;br /&gt;
==How it works==&lt;br /&gt;
&lt;br /&gt;
Once enabled, all emails sent from Dolibarr will be routed through Postmark. The module intercepts the native email sending and replaces it with Postmark&#039;s API.&lt;br /&gt;
&lt;br /&gt;
When a webhook is configured, Postmark will notify your Dolibarr installation of email events:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Event!!Description!!Dolibarr Code&lt;br /&gt;
|-&lt;br /&gt;
|Sent||Email sent via Postmark||POSTMARK_SENT&lt;br /&gt;
|-&lt;br /&gt;
|Delivered||Email delivered to recipient&#039;s server||POSTMARK_DELIVERY&lt;br /&gt;
|-&lt;br /&gt;
|Opened||Recipient opened the email||POSTMARK_OPEN&lt;br /&gt;
|-&lt;br /&gt;
|Clicked||Recipient clicked a link||POSTMARK_CLICK&lt;br /&gt;
|-&lt;br /&gt;
|Bounced||Email could not be delivered||POSTMARK_BOUNCE&lt;br /&gt;
|-&lt;br /&gt;
|Spam||Recipient marked as spam||POSTMARK_SPAM_COMPLAINT&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each event creates an entry in Dolibarr&#039;s Agenda, linked to the original object.&lt;br /&gt;
&lt;br /&gt;
==Database==&lt;br /&gt;
&lt;br /&gt;
The module creates one custom table:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Column!!Type!!Description&lt;br /&gt;
|-&lt;br /&gt;
|rowid||INTEGER||Primary key&lt;br /&gt;
|-&lt;br /&gt;
|email_id||VARCHAR(255)||Postmark MessageID&lt;br /&gt;
|-&lt;br /&gt;
|event_type||VARCHAR(50)||Event type&lt;br /&gt;
|-&lt;br /&gt;
|recipient||VARCHAR(255)||Email recipient&lt;br /&gt;
|-&lt;br /&gt;
|subject||VARCHAR(255)||Email subject&lt;br /&gt;
|-&lt;br /&gt;
|fk_soc||INTEGER||Linked third party ID&lt;br /&gt;
|-&lt;br /&gt;
|fk_contact||INTEGER||Linked contact ID&lt;br /&gt;
|-&lt;br /&gt;
|fk_element||INTEGER||Linked element ID&lt;br /&gt;
|-&lt;br /&gt;
|element_type||VARCHAR(50)||Element type (propal, facture, etc.)&lt;br /&gt;
|-&lt;br /&gt;
|fk_actioncomm||INTEGER||Linked ActionComm ID&lt;br /&gt;
|-&lt;br /&gt;
|event_data||TEXT||JSON data from webhook&lt;br /&gt;
|-&lt;br /&gt;
|date_creation||DATETIME||Event timestamp&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
===Emails not sending===&lt;br /&gt;
&lt;br /&gt;
#Check that &amp;lt;code&amp;gt;POSTMARKAPP_REPLACE_MAILER&amp;lt;/code&amp;gt; is enabled&lt;br /&gt;
#Verify the Server API Token is valid&lt;br /&gt;
#Check Dolibarr logs for error messages&lt;br /&gt;
#Ensure the &amp;quot;From&amp;quot; address is a verified Sender Signature in Postmark&lt;br /&gt;
&lt;br /&gt;
===Webhooks not received===&lt;br /&gt;
&lt;br /&gt;
#Verify the webhook URL is accessible from the internet&lt;br /&gt;
#Check that webhooks are created in Postmark dashboard&lt;br /&gt;
#Test webhooks using the built-in test buttons&lt;br /&gt;
#Check server logs for incoming requests&lt;br /&gt;
&lt;br /&gt;
===Click tracking not working===&lt;br /&gt;
&lt;br /&gt;
Click tracking requires emails to be sent in HTML format. Plain text emails cannot track clicks.&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add screenshots here --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.2 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Simplified event notes and labels&lt;br /&gt;
*Removed duplicate &amp;quot;Sent&amp;quot; event&lt;br /&gt;
*Added bilingual documentation&lt;br /&gt;
*Added multi-language support&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
*[https://postmarkapp.com Postmark Official Website]&lt;br /&gt;
*[https://lysis.net Lysis - Developer Website]&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
This module is distributed under the [https://www.gnu.org/licenses/gpl-3.0 GNU General Public License v3 (GPLv3)].&lt;br /&gt;
&lt;br /&gt;
==Professional Services / Services professionnels==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Need help with setup?&#039;&#039;&#039; We can assist you with:&lt;br /&gt;
&lt;br /&gt;
*Installation and configuration of the PostmarkApp module&lt;br /&gt;
*Postmark account setup and sender signature verification&lt;br /&gt;
*Webhook configuration and testing&lt;br /&gt;
*Integration with your existing Dolibarr workflows&lt;br /&gt;
*Training for your team&lt;br /&gt;
&lt;br /&gt;
Contact us for a personalized quote.&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Besoin d&#039;aide pour le paramétrage ?&#039;&#039;&#039; Nous pouvons vous accompagner pour&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*L&#039;installation et la configuration du module PostmarkApp&lt;br /&gt;
*La création de votre compte Postmark et la vérification des signatures d&#039;expéditeur&lt;br /&gt;
*La configuration et les tests des webhooks&lt;br /&gt;
*L&#039;intégration avec vos processus Dolibarr existants&lt;br /&gt;
*La formation de vos équipes&lt;br /&gt;
&lt;br /&gt;
Contactez-nous pour un devis personnalisé.&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alex BORDARAUD&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Website: https://lysis.net&lt;br /&gt;
[[Category:Modules complémentaires]]&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65138</id>
		<title>Module PostmarkApp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65138"/>
		<updated>2026-01-06T13:27:38Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: init&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Dolibarr module&lt;br /&gt;
|name=PostmarkApp&lt;br /&gt;
|logo=&lt;br /&gt;
|developer=Alex BORDARAUD - Lysis&lt;br /&gt;
|contact=alex@lysis.net&lt;br /&gt;
|website=https://lysis.net&lt;br /&gt;
|dolistore=&lt;br /&gt;
|version=1.5.2&lt;br /&gt;
|dolibarr_min=19.0&lt;br /&gt;
|dolibarr_max=&lt;br /&gt;
|license=GPLv3&lt;br /&gt;
|language=Multi (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PostmarkApp&#039;&#039;&#039; is a Dolibarr module that replaces the native email sending system with [https://postmarkapp.com Postmark], a professional transactional email service.&lt;br /&gt;
&lt;br /&gt;
==Why use PostmarkApp?==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Legal proof and dispute resolution&#039;&#039;&#039;: Having precise tracking of email delivery, opening, and link clicks provides valuable evidence in case of disputes. You can prove that:&lt;br /&gt;
&lt;br /&gt;
*An invoice or quote was successfully delivered to your client&lt;br /&gt;
*The recipient opened the email and read it&lt;br /&gt;
*They clicked on links (payment, validation, etc.)&lt;br /&gt;
&lt;br /&gt;
This traceability is essential for businesses that need to demonstrate that important information was transmitted and received.&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Preuve juridique et résolution de litiges&#039;&#039;&#039;&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Disposer d&#039;un suivi précis de la livraison, de l&#039;ouverture et des clics sur les liens de vos emails constitue une preuve précieuse en cas de litige. Vous pouvez prouver que&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*Une facture ou un devis a bien été délivré à votre client&lt;br /&gt;
*Le destinataire a ouvert l&#039;email et l&#039;a lu&lt;br /&gt;
*Il a cliqué sur les liens (paiement, validation, etc.)&lt;br /&gt;
&lt;br /&gt;
Cette traçabilité est essentielle pour les entreprises qui doivent démontrer que des informations importantes ont été transmises et reçues.&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Email Sending via Postmark API&#039;&#039;&#039; - All Dolibarr emails are sent through Postmark&lt;br /&gt;
*&#039;&#039;&#039;Delivery Tracking&#039;&#039;&#039; - Know when your emails are delivered&lt;br /&gt;
*&#039;&#039;&#039;Open Tracking&#039;&#039;&#039; - Track when recipients open your emails (first open only)&lt;br /&gt;
*&#039;&#039;&#039;Click Tracking&#039;&#039;&#039; - Monitor which links are clicked in your emails&lt;br /&gt;
*&#039;&#039;&#039;Bounce Handling&#039;&#039;&#039; - Automatically handle bounced emails&lt;br /&gt;
*&#039;&#039;&#039;Spam Complaint Tracking&#039;&#039;&#039; - Be notified of spam complaints&lt;br /&gt;
*&#039;&#039;&#039;Dolibarr Events Integration&#039;&#039;&#039; - All email events are logged in Dolibarr&#039;s Agenda module&lt;br /&gt;
*&#039;&#039;&#039;Object Linking&#039;&#039;&#039; - Events are linked to related Dolibarr objects (invoices, proposals, orders, etc.)&lt;br /&gt;
*&#039;&#039;&#039;Multi-language&#039;&#039;&#039; - Available in 7 languages (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
*Dolibarr 19.0 or higher&lt;br /&gt;
*PHP 7.1 or higher with cURL extension&lt;br /&gt;
*Postmark account with Server API Token&lt;br /&gt;
*Agenda module must be enabled&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
#Download the module package &amp;lt;code&amp;gt;module_postmarkapp-x.y.z.zip&amp;lt;/code&amp;gt;&lt;br /&gt;
#Extract to &amp;lt;code&amp;gt;htdocs/custom/postmarkapp/&amp;lt;/code&amp;gt; or use Dolibarr&#039;s module deployment feature&lt;br /&gt;
#Go to &#039;&#039;&#039;Home &amp;gt; Setup &amp;gt; Modules/Applications&#039;&#039;&#039;&lt;br /&gt;
#Search for &amp;quot;PostmarkApp&amp;quot; and enable the module&lt;br /&gt;
#Configure the module in &#039;&#039;&#039;Setup &amp;gt; Modules &amp;gt; PostmarkApp &amp;gt; Settings&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
&lt;br /&gt;
===Step 1: Server API Token===&lt;br /&gt;
&lt;br /&gt;
#Log in to your Postmark account at https://postmarkapp.com&lt;br /&gt;
#Select your server&lt;br /&gt;
#Go to &#039;&#039;&#039;API Tokens&#039;&#039;&#039; tab&lt;br /&gt;
#Copy the &#039;&#039;&#039;Server API Token&#039;&#039;&#039;&lt;br /&gt;
#Paste it in the PostmarkApp configuration page&lt;br /&gt;
#Click &#039;&#039;&#039;Validate&#039;&#039;&#039; to test the connection&lt;br /&gt;
&lt;br /&gt;
===Step 2: Options===&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Message Stream&#039;&#039;&#039;: Select the message stream to use (default: &amp;quot;outbound&amp;quot;)&lt;br /&gt;
*&#039;&#039;&#039;Track Opens&#039;&#039;&#039;: Enable/disable open tracking&lt;br /&gt;
*&#039;&#039;&#039;Track Clicks&#039;&#039;&#039;: Enable/disable click tracking (requires HTML emails)&lt;br /&gt;
*&#039;&#039;&#039;Replace Dolibarr Mailer&#039;&#039;&#039;: Enable to route all emails through Postmark&lt;br /&gt;
&lt;br /&gt;
===Step 3: Webhook===&lt;br /&gt;
&lt;br /&gt;
Webhooks allow Postmark to notify Dolibarr of email events in real-time.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Automatic Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*Click &#039;&#039;&#039;Create Webhook Automatically&#039;&#039;&#039;&lt;br /&gt;
*The webhook URL will be registered with Postmark&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manual Setup:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Copy the webhook URL displayed in the configuration&lt;br /&gt;
#Go to Postmark &amp;gt; Servers &amp;gt; Your Server &amp;gt; Webhooks&lt;br /&gt;
#Add a new webhook with the copied URL&lt;br /&gt;
#Enable: Delivery, Open (First Open Only), Click, Bounce, Spam Complaint&lt;br /&gt;
&lt;br /&gt;
==How it works==&lt;br /&gt;
&lt;br /&gt;
Once enabled, all emails sent from Dolibarr will be routed through Postmark. The module intercepts the native email sending and replaces it with Postmark&#039;s API.&lt;br /&gt;
&lt;br /&gt;
When a webhook is configured, Postmark will notify your Dolibarr installation of email events:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Event!!Description!!Dolibarr Code&lt;br /&gt;
|-&lt;br /&gt;
|Sent||Email sent via Postmark||POSTMARK_SENT&lt;br /&gt;
|-&lt;br /&gt;
|Delivered||Email delivered to recipient&#039;s server||POSTMARK_DELIVERY&lt;br /&gt;
|-&lt;br /&gt;
|Opened||Recipient opened the email||POSTMARK_OPEN&lt;br /&gt;
|-&lt;br /&gt;
|Clicked||Recipient clicked a link||POSTMARK_CLICK&lt;br /&gt;
|-&lt;br /&gt;
|Bounced||Email could not be delivered||POSTMARK_BOUNCE&lt;br /&gt;
|-&lt;br /&gt;
|Spam||Recipient marked as spam||POSTMARK_SPAM_COMPLAINT&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each event creates an entry in Dolibarr&#039;s Agenda, linked to the original object.&lt;br /&gt;
&lt;br /&gt;
==Database==&lt;br /&gt;
&lt;br /&gt;
The module creates one custom table:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Column!!Type!!Description&lt;br /&gt;
|-&lt;br /&gt;
|rowid||INTEGER||Primary key&lt;br /&gt;
|-&lt;br /&gt;
|email_id||VARCHAR(255)||Postmark MessageID&lt;br /&gt;
|-&lt;br /&gt;
|event_type||VARCHAR(50)||Event type&lt;br /&gt;
|-&lt;br /&gt;
|recipient||VARCHAR(255)||Email recipient&lt;br /&gt;
|-&lt;br /&gt;
|subject||VARCHAR(255)||Email subject&lt;br /&gt;
|-&lt;br /&gt;
|fk_soc||INTEGER||Linked third party ID&lt;br /&gt;
|-&lt;br /&gt;
|fk_contact||INTEGER||Linked contact ID&lt;br /&gt;
|-&lt;br /&gt;
|fk_element||INTEGER||Linked element ID&lt;br /&gt;
|-&lt;br /&gt;
|element_type||VARCHAR(50)||Element type (propal, facture, etc.)&lt;br /&gt;
|-&lt;br /&gt;
|fk_actioncomm||INTEGER||Linked ActionComm ID&lt;br /&gt;
|-&lt;br /&gt;
|event_data||TEXT||JSON data from webhook&lt;br /&gt;
|-&lt;br /&gt;
|date_creation||DATETIME||Event timestamp&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
&lt;br /&gt;
===Emails not sending===&lt;br /&gt;
&lt;br /&gt;
#Check that &amp;lt;code&amp;gt;POSTMARKAPP_REPLACE_MAILER&amp;lt;/code&amp;gt; is enabled&lt;br /&gt;
#Verify the Server API Token is valid&lt;br /&gt;
#Check Dolibarr logs for error messages&lt;br /&gt;
#Ensure the &amp;quot;From&amp;quot; address is a verified Sender Signature in Postmark&lt;br /&gt;
&lt;br /&gt;
===Webhooks not received===&lt;br /&gt;
&lt;br /&gt;
#Verify the webhook URL is accessible from the internet&lt;br /&gt;
#Check that webhooks are created in Postmark dashboard&lt;br /&gt;
#Test webhooks using the built-in test buttons&lt;br /&gt;
#Check server logs for incoming requests&lt;br /&gt;
&lt;br /&gt;
===Click tracking not working===&lt;br /&gt;
&lt;br /&gt;
Click tracking requires emails to be sent in HTML format. Plain text emails cannot track clicks.&lt;br /&gt;
&lt;br /&gt;
==Screenshots==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add screenshots here --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
&lt;br /&gt;
===Version 1.5.2 (2026-01-06)===&lt;br /&gt;
&lt;br /&gt;
*Simplified event notes and labels&lt;br /&gt;
*Removed duplicate &amp;quot;Sent&amp;quot; event&lt;br /&gt;
*Added bilingual documentation&lt;br /&gt;
*Added multi-language support&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
*[https://postmarkapp.com Postmark Official Website]&lt;br /&gt;
*[https://lysis.net Lysis - Developer Website]&lt;br /&gt;
&lt;br /&gt;
==License==&lt;br /&gt;
&lt;br /&gt;
This module is distributed under the [https://www.gnu.org/licenses/gpl-3.0 GNU General Public License v3 (GPLv3)].&lt;br /&gt;
&lt;br /&gt;
==Professional Services / Services professionnels==&lt;br /&gt;
&lt;br /&gt;
===English===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Need help with setup?&#039;&#039;&#039; We can assist you with:&lt;br /&gt;
&lt;br /&gt;
*Installation and configuration of the PostmarkApp module&lt;br /&gt;
*Postmark account setup and sender signature verification&lt;br /&gt;
*Webhook configuration and testing&lt;br /&gt;
*Integration with your existing Dolibarr workflows&lt;br /&gt;
*Training for your team&lt;br /&gt;
&lt;br /&gt;
Contact us for a personalized quote.&lt;br /&gt;
&lt;br /&gt;
===Français===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Besoin d&#039;aide pour le paramétrage ?&#039;&#039;&#039; Nous pouvons vous accompagner pour&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
*L&#039;installation et la configuration du module PostmarkApp&lt;br /&gt;
*La création de votre compte Postmark et la vérification des signatures d&#039;expéditeur&lt;br /&gt;
*La configuration et les tests des webhooks&lt;br /&gt;
*L&#039;intégration avec vos processus Dolibarr existants&lt;br /&gt;
*La formation de vos équipes&lt;br /&gt;
&lt;br /&gt;
Contactez-nous pour un devis personnalisé.&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Alex BORDARAUD&#039;&#039;&#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
Website: https://lysis.net&lt;br /&gt;
&lt;br /&gt;
[[Category:External module]]&lt;br /&gt;
[[Category:Communication module]]&lt;br /&gt;
[[Category:Email module]]&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65137</id>
		<title>Module PostmarkApp</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=Module_PostmarkApp&amp;diff=65137"/>
		<updated>2026-01-06T13:22:01Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: Création du module PostmarkApp&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= POSTMARKAPP =&lt;br /&gt;
:subtitle: POSTMARKAPP DOCUMENTATION&lt;br /&gt;
:source-highlighter: rouge&lt;br /&gt;
:companyname: Lysis&lt;br /&gt;
:corpname: Lysis&lt;br /&gt;
:orgname: Lysis&lt;br /&gt;
:author: Alex BORDARAUD&lt;br /&gt;
:email: alex@lysis.net&lt;br /&gt;
:creator: Alex BORDARAUD&lt;br /&gt;
:title: Documentation of module PostmarkApp&lt;br /&gt;
:subject: This document is the documentation of module PostmarkApp.&lt;br /&gt;
:keywords: PostmarkApp, Postmark, Email, Dolibarr, Webhook&lt;br /&gt;
:docdate: 2026-01-06&lt;br /&gt;
:toc: manual&lt;br /&gt;
:toc-placement: preamble&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TOPIC OF DOCUMENT&lt;br /&gt;
&lt;br /&gt;
This is the documentation of module PostmarkApp - Postmark email integration for Dolibarr.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Log of versions of document*&lt;br /&gt;
&lt;br /&gt;
[options=&amp;quot;header&amp;quot;,format=&amp;quot;csv&amp;quot;]&lt;br /&gt;
|=== &lt;br /&gt;
Author, Date, Version&lt;br /&gt;
Alex BORDARAUD &amp;lt;alex@lysis.net&amp;gt;, 2026-01-06, Version 1.5.2&lt;br /&gt;
|===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[NOTE]&lt;br /&gt;
==============&lt;br /&gt;
This document was generated using Dolibarr ERP CRM process&lt;br /&gt;
==============&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:toc: manual&lt;br /&gt;
:toc-placement: preamble&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== INTRODUCTION&lt;br /&gt;
&lt;br /&gt;
=== English&lt;br /&gt;
&lt;br /&gt;
PostmarkApp is a Dolibarr module that replaces the native email sending system with Postmark&#039;s transactional email service. It provides advanced email tracking capabilities including delivery confirmation, open tracking, click tracking, and bounce handling.&lt;br /&gt;
&lt;br /&gt;
=== Français&lt;br /&gt;
&lt;br /&gt;
PostmarkApp est un module Dolibarr qui remplace le système natif d&#039;envoi d&#039;emails par le service de messagerie transactionnelle Postmark. Il offre des fonctionnalités avancées de suivi des emails incluant la confirmation de livraison, le suivi d&#039;ouverture, le suivi des clics et la gestion des rebonds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== FEATURES / FONCTIONNALITÉS&lt;br /&gt;
&lt;br /&gt;
=== English&lt;br /&gt;
&lt;br /&gt;
* *Email Sending via Postmark API*: All emails sent from Dolibarr are routed through Postmark&lt;br /&gt;
* *Delivery Tracking*: Know when your emails are delivered&lt;br /&gt;
* *Open Tracking*: Track when recipients open your emails (first open only)&lt;br /&gt;
* *Click Tracking*: Monitor which links are clicked in your emails&lt;br /&gt;
* *Bounce Handling*: Automatically handle bounced emails&lt;br /&gt;
* *Spam Complaint Tracking*: Be notified of spam complaints&lt;br /&gt;
* *Dolibarr Events Integration*: All email events are logged in Dolibarr&#039;s agenda&lt;br /&gt;
* *Object Linking*: Events are linked to related Dolibarr objects (third parties, contacts, proposals, invoices, etc.)&lt;br /&gt;
&lt;br /&gt;
=== Français&lt;br /&gt;
&lt;br /&gt;
* *Envoi d&#039;emails via l&#039;API Postmark* : Tous les emails envoyés depuis Dolibarr passent par Postmark&lt;br /&gt;
* *Suivi de livraison* : Savoir quand vos emails sont livrés&lt;br /&gt;
* *Suivi d&#039;ouverture* : Suivre quand les destinataires ouvrent vos emails (première ouverture uniquement)&lt;br /&gt;
* *Suivi des clics* : Surveiller les liens cliqués dans vos emails&lt;br /&gt;
* *Gestion des rebonds* : Gérer automatiquement les emails rebondis&lt;br /&gt;
* *Suivi des plaintes spam* : Être notifié des plaintes spam&lt;br /&gt;
* *Intégration événements Dolibarr* : Tous les événements email sont enregistrés dans l&#039;agenda Dolibarr&lt;br /&gt;
* *Liaison aux objets* : Les événements sont liés aux objets Dolibarr concernés&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== REQUIREMENTS / PRÉREQUIS&lt;br /&gt;
&lt;br /&gt;
* Dolibarr 16.0+&lt;br /&gt;
* PHP 7.4+ with cURL extension&lt;br /&gt;
* Postmark account with Server API Token&lt;br /&gt;
* Agenda module enabled in Dolibarr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== INSTALLATION&lt;br /&gt;
&lt;br /&gt;
=== English&lt;br /&gt;
&lt;br /&gt;
1. Download the module package `module_postmarkapp-x.y.z.zip`&lt;br /&gt;
2. Extract to `htdocs/custom/postmarkapp/` or use Dolibarr&#039;s module deployment feature&lt;br /&gt;
3. Go to *Home &amp;gt; Setup &amp;gt; Modules/Applications*&lt;br /&gt;
4. Search for &amp;quot;PostmarkApp&amp;quot; and enable the module&lt;br /&gt;
5. Configure the module in *Setup &amp;gt; Modules &amp;gt; PostmarkApp Setup*&lt;br /&gt;
&lt;br /&gt;
=== Français&lt;br /&gt;
&lt;br /&gt;
1. Téléchargez le package `module_postmarkapp-x.y.z.zip`&lt;br /&gt;
2. Extrayez dans `htdocs/custom/postmarkapp/` ou utilisez le déploiement de modules Dolibarr&lt;br /&gt;
3. Allez dans *Accueil &amp;gt; Configuration &amp;gt; Modules/Applications*&lt;br /&gt;
4. Recherchez &amp;quot;PostmarkApp&amp;quot; et activez le module&lt;br /&gt;
5. Configurez dans *Configuration &amp;gt; Modules &amp;gt; Configuration PostmarkApp*&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CONFIGURATION&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Server API Token / Étape 1 : Server API Token&lt;br /&gt;
&lt;br /&gt;
1. Log in to your Postmark account at https://postmarkapp.com&lt;br /&gt;
2. Select your server / Sélectionnez votre serveur&lt;br /&gt;
3. Go to *API Tokens* tab / Allez dans l&#039;onglet *API Tokens*&lt;br /&gt;
4. Copy the *Server API Token* / Copiez le *Server API Token*&lt;br /&gt;
5. Paste it in the PostmarkApp configuration page / Collez-le dans la page de configuration&lt;br /&gt;
6. Click *Validate* to test the connection / Cliquez sur *Valider* pour tester&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Options / Étape 2 : Options&lt;br /&gt;
&lt;br /&gt;
* *Message Stream*: Select the message stream (default: &amp;quot;outbound&amp;quot;) / Sélectionnez le flux de messages&lt;br /&gt;
* *Track Opens*: Enable/disable open tracking / Activer/désactiver le suivi d&#039;ouverture&lt;br /&gt;
* *Track Clicks*: Enable/disable click tracking (requires HTML emails) / Activer/désactiver le suivi des clics&lt;br /&gt;
* *Replace Dolibarr Mailer*: Enable to route all emails through Postmark / Activer pour router tous les emails via Postmark&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Webhook (Optional) / Étape 3 : Webhook (Optionnel)&lt;br /&gt;
&lt;br /&gt;
Webhooks allow Postmark to notify Dolibarr of email events in real-time.&lt;br /&gt;
Les webhooks permettent à Postmark de notifier Dolibarr des événements email en temps réel.&lt;br /&gt;
&lt;br /&gt;
*Automatic Setup / Configuration automatique:*&lt;br /&gt;
Click *Create Webhook Automatically* / Cliquez sur *Créer le webhook automatiquement*&lt;br /&gt;
&lt;br /&gt;
*Manual Setup / Configuration manuelle:*&lt;br /&gt;
&lt;br /&gt;
1. Copy the webhook URL displayed in the configuration / Copiez l&#039;URL du webhook affichée&lt;br /&gt;
2. Go to Postmark &amp;gt; Servers &amp;gt; Your Server &amp;gt; Webhooks / Allez dans Postmark &amp;gt; Servers &amp;gt; Votre serveur &amp;gt; Webhooks&lt;br /&gt;
3. Add a new webhook with the copied URL / Ajoutez un nouveau webhook avec l&#039;URL copiée&lt;br /&gt;
4. Enable: Delivery, Open (First Open Only), Click, Bounce, Spam Complaint / Activez ces événements&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== DATA SPECIFICATIONS&lt;br /&gt;
&lt;br /&gt;
=== Database Table: llx_postmarkapp_events&lt;br /&gt;
&lt;br /&gt;
.Database columns&lt;br /&gt;
[cols=&amp;quot;20,20,60&amp;quot;,frame=&amp;quot;topbot&amp;quot;]&lt;br /&gt;
|====&lt;br /&gt;
|Column |Type |Description&lt;br /&gt;
&lt;br /&gt;
|rowid |INTEGER |Primary key / Clé primaire&lt;br /&gt;
|email_id |VARCHAR(255) |Postmark MessageID&lt;br /&gt;
|event_type |VARCHAR(50) |Event type (Sent, Delivery, Open, Click, Bounce, SpamComplaint)&lt;br /&gt;
|recipient |VARCHAR(255) |Email recipient / Destinataire&lt;br /&gt;
|subject |VARCHAR(255) |Email subject / Sujet&lt;br /&gt;
|fk_soc |INTEGER |Linked third party ID / ID tiers lié&lt;br /&gt;
|fk_contact |INTEGER |Linked contact ID / ID contact lié&lt;br /&gt;
|fk_element |INTEGER |Linked element ID / ID élément lié&lt;br /&gt;
|element_type |VARCHAR(50) |Element type (propal, facture, commande, etc.)&lt;br /&gt;
|fk_actioncomm |INTEGER |Linked ActionComm ID / ID événement lié&lt;br /&gt;
|event_data |TEXT |JSON data from webhook / Données JSON du webhook&lt;br /&gt;
|date_creation |DATETIME |Event timestamp / Horodatage&lt;br /&gt;
|====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EVENT TYPES / TYPES D&#039;ÉVÉNEMENTS&lt;br /&gt;
&lt;br /&gt;
.Event types&lt;br /&gt;
[cols=&amp;quot;15,25,25,35&amp;quot;,frame=&amp;quot;topbot&amp;quot;]&lt;br /&gt;
|====&lt;br /&gt;
|Event |Description EN |Description FR |Code&lt;br /&gt;
&lt;br /&gt;
|Sent |Email sent via Postmark |Email envoyé via Postmark |POSTMARK_SENT&lt;br /&gt;
|Delivered |Email delivered |Email délivré |POSTMARK_DELIVERY&lt;br /&gt;
|Opened |Email opened |Email lu |POSTMARK_OPEN&lt;br /&gt;
|Clicked |Link clicked |Lien cliqué |POSTMARK_CLICK&lt;br /&gt;
|Bounced |Email bounced |Email rebondi |POSTMARK_BOUNCE&lt;br /&gt;
|Spam |Spam complaint |Plainte spam |POSTMARK_SPAM_COMPLAINT&lt;br /&gt;
|====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MATRIX OF PERMISSIONS / MATRICE DES PERMISSIONS&lt;br /&gt;
&lt;br /&gt;
.Permissions&lt;br /&gt;
[cols=&amp;quot;20,40,40&amp;quot;,frame=&amp;quot;topbot&amp;quot;]&lt;br /&gt;
|====&lt;br /&gt;
|Permission |Description |PHP Check&lt;br /&gt;
&lt;br /&gt;
|Read |Read PostmarkApp configuration |$user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;read&#039;)&lt;br /&gt;
|Write |Modify PostmarkApp configuration |$user-&amp;gt;hasRight(&#039;postmarkapp&#039;, &#039;write&#039;)&lt;br /&gt;
|====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TROUBLESHOOTING / DÉPANNAGE&lt;br /&gt;
&lt;br /&gt;
=== Emails not sending / Emails non envoyés&lt;br /&gt;
&lt;br /&gt;
1. Check that `POSTMARKAPP_REPLACE_MAILER` is enabled / Vérifiez que `POSTMARKAPP_REPLACE_MAILER` est activé&lt;br /&gt;
2. Verify the Server API Token is valid / Vérifiez que le Server API Token est valide&lt;br /&gt;
3. Check Dolibarr logs for error messages / Consultez les logs Dolibarr&lt;br /&gt;
4. Ensure the &amp;quot;From&amp;quot; address is a verified Sender Signature in Postmark / Vérifiez que l&#039;adresse &amp;quot;From&amp;quot; est vérifiée dans Postmark&lt;br /&gt;
&lt;br /&gt;
=== Webhooks not received / Webhooks non reçus&lt;br /&gt;
&lt;br /&gt;
1. Verify the webhook URL is accessible from the internet / Vérifiez que l&#039;URL est accessible depuis Internet&lt;br /&gt;
2. Check that webhooks are created in Postmark dashboard / Vérifiez les webhooks dans Postmark&lt;br /&gt;
3. Test webhooks using the built-in test buttons / Testez avec les boutons intégrés&lt;br /&gt;
&lt;br /&gt;
=== Click tracking not working / Suivi des clics non fonctionnel&lt;br /&gt;
&lt;br /&gt;
Click tracking requires emails to be sent in HTML format. Plain text emails cannot track clicks.&lt;br /&gt;
Le suivi des clics nécessite des emails au format HTML. Les emails texte brut ne peuvent pas suivre les clics.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API DOCUMENTATION&lt;br /&gt;
&lt;br /&gt;
=== Postmark API Endpoints Used&lt;br /&gt;
&lt;br /&gt;
* `POST /email` - Send email&lt;br /&gt;
* `GET /server` - Test connection&lt;br /&gt;
* `GET /message-streams` - List message streams&lt;br /&gt;
* `GET /senders` - List sender signatures&lt;br /&gt;
* `GET /webhooks` - List webhooks&lt;br /&gt;
* `POST /webhooks` - Create webhook&lt;br /&gt;
&lt;br /&gt;
=== Webhook Endpoint&lt;br /&gt;
&lt;br /&gt;
`POST /custom/postmarkapp/webhook.php`&lt;br /&gt;
&lt;br /&gt;
Receives webhook notifications from Postmark for the following events:&lt;br /&gt;
- Delivery&lt;br /&gt;
- Open (First Open Only)&lt;br /&gt;
- Click&lt;br /&gt;
- Bounce&lt;br /&gt;
- SpamComplaint&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== CHANGELOG&lt;br /&gt;
&lt;br /&gt;
See link:../CHANGELOG.md[CHANGELOG.md] for full version history.&lt;br /&gt;
&lt;br /&gt;
=== Version 1.5.2 (2026-01-06)&lt;br /&gt;
&lt;br /&gt;
* Simplified event notes and labels&lt;br /&gt;
* Removed duplicate &amp;quot;Sent&amp;quot; event (uses Dolibarr native system)&lt;br /&gt;
* Added bilingual documentation&lt;br /&gt;
* Added multi-language support (FR, EN, DE, ES, IT, PT, NL)&lt;br /&gt;
* Added Agenda module dependency&lt;br /&gt;
* Added automatic triggers for Postmark events&lt;br /&gt;
&lt;br /&gt;
=== Version 1.0 (2026-01-06)&lt;br /&gt;
&lt;br /&gt;
* Initial release&lt;br /&gt;
* Postmark API integration&lt;br /&gt;
* Webhook handling&lt;br /&gt;
* Event tracking&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== LICENSE&lt;br /&gt;
&lt;br /&gt;
This module is distributed under the GNU General Public License v3 (GPLv3).&lt;br /&gt;
&lt;br /&gt;
Copyright (C) 2026 Lysis - Alex BORDARAUD&lt;br /&gt;
&lt;br /&gt;
== SUPPORT&lt;br /&gt;
&lt;br /&gt;
For support, please contact: alex@lysis.net&lt;br /&gt;
Website: https://lysis.net&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
	<entry>
		<id>https://wiki.dolibarr.org/index.php?title=List_of_modules_id&amp;diff=60907</id>
		<title>List of modules id</title>
		<link rel="alternate" type="text/html" href="https://wiki.dolibarr.org/index.php?title=List_of_modules_id&amp;diff=60907"/>
		<updated>2024-07-15T06:37:39Z</updated>

		<summary type="html">&lt;p&gt;AlexBordaraud: Ajout d&amp;#039;une plage de 50 Id pour Lysis https://lysis.net&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TemplateDocDevEn}}&lt;br /&gt;
{{TemplateDocDevEs}}&lt;br /&gt;
{{TemplateDocDevFr}}&lt;br /&gt;
{{TemplateDocDevZh}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Flag en}}&lt;br /&gt;
This page list all reserved modules numbers / ID. If you build or want to build your own modules (like thi , you should take an ID range here. Please pick range into existing holes first.&lt;br /&gt;
&lt;br /&gt;
{{Flag fr}}&lt;br /&gt;
Cette page recense tous les numéros / ID réservés de modules. Si vous avez réalisé ou voulez réaliser vos propres modules (comme les [[:Category:Modules complémentaires|modules complémentaires suivant]]), vous devriez prendre une plage d&#039;ID ici. Merci de prendre dans les trous existant en priorité !&lt;br /&gt;
&lt;br /&gt;
{{Flag sp}}&lt;br /&gt;
Esta página contiene un listado de todos los id reservados para los módulos. Si ha creado o quiere realizar sus propios módulos, (como estos [[:Category:Módulos_complementarios|módulos complementarios]]), deberá reservarse un rango de ID aquí.&lt;br /&gt;
&lt;br /&gt;
{{Flag zh}}&lt;br /&gt;
此页面列出了所有保留的模块ID/编号。如果您正在构建或想要构建自己的模块（如 [[:Category:Complementary_modules|扩展模块]]），您应该在此处声明一个ID范围。感谢您优先考虑现有空当！&lt;br /&gt;
&lt;br /&gt;
=ID 0 - 99999=&lt;br /&gt;
{{Flag en}}&lt;br /&gt;
Reserved for Dolibarr&#039;s internal modules.&lt;br /&gt;
&lt;br /&gt;
{{Flag fr}}&lt;br /&gt;
Réservé aux modules internes de Dolibarr.&lt;br /&gt;
&lt;br /&gt;
{{Flag sp}}&lt;br /&gt;
Reservado a los módulos internos de Dolibarr.&lt;br /&gt;
&lt;br /&gt;
{{Flag zh}}&lt;br /&gt;
为Dolibarr的内部模块保留。&lt;br /&gt;
&lt;br /&gt;
=ID 100000 - 499999=&lt;br /&gt;
{{Flag en}} &lt;br /&gt;
&#039;&#039;&#039;Reserved area for editors in need for an ID range. You can edit this page to add your own range (take a range of 50 numbers only the first time, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{Flag fr}}Zone réservée aux éditeurs qui ont besoin d&#039;une plage d&#039;ID spécifiques. Vous pouvez modifier cette page pour réserver votre plage (limitée à 50 valeurs la première fois, demandez nous pour plus)&lt;br /&gt;
&lt;br /&gt;
{{Flag sp}}&lt;br /&gt;
Área reservada para los partners que necesiten un rango de ID. Puede modificar esta página para reservar su rango (limitado a 50 valores por editor)&lt;br /&gt;
&lt;br /&gt;
{{Flag zh}}&lt;br /&gt;
为需要特定ID范围的开发者保留的区域。您可以更改此页面以预订您自己的范围（第一次限制为50个值，请向我们咨询更多信息）。&lt;br /&gt;
如果您预订超过50个ID，我们可能会在没有通知的情况下自动更改您的预订范围，您将来可能会遇到与其他模块的冲突，因此请遵守规则！ &lt;br /&gt;
&lt;br /&gt;
[[File:Warning.png]] If you reserve more than 50, we may automatically change your reservation range without information and you may experience conflicts with other modules in a future, so please follow the rules!&lt;br /&gt;
&lt;br /&gt;
*ID 100000 - 100999: OpenThink (http://www.openthink.be)&lt;br /&gt;
*ID 101000 - 101999: NLTechno (https://www.nltechno.com)&lt;br /&gt;
*ID 102000 - 102999: Tiaris (http://www.tiaris.fr)&lt;br /&gt;
*ID 103000 - 103999: Open-concept.pro (http://www.open-concept.pro)&lt;br /&gt;
*ID 104000 - 104999: ATM Consulting (http://www.atm-consulting.fr)&lt;br /&gt;
*ID 105000 - 105999: GPC.solutions&lt;br /&gt;
*ID 106000 - 106999: PHPASSO&lt;br /&gt;
*ID 107000 - 107999: TecLib (http://www.teclib.com) / Auguria (http://www.auguria.net)&lt;br /&gt;
*ID 108000 - 108999: ETHICWEB&lt;br /&gt;
*ID 109000 - 109999: Aplose ([http://www.aplose.fr https://www.aplose.fr])&lt;br /&gt;
*ID 110000 - 110999: Association Dolibarr (https://www.dolibarr.org)&lt;br /&gt;
*ID 111000 - 111999: Asset IT (www.assetit.ch)&lt;br /&gt;
*ID 112000 - 112999: Aarboard AG (www.aarboard.ch)&lt;br /&gt;
*ID 113000 - 113999: Asilib - Alexandre Spangaro&lt;br /&gt;
*ID 114000 - 114999: Iceleaf OÜ&lt;br /&gt;
*ID 115000 - 115999: 2A2C Conseil - Cyril ZEKSER&lt;br /&gt;
*ID 116000 - 116999: Wolftec GmbH&lt;br /&gt;
*ID 117000 - 117999: Oscim (http://www.oscim.fr)&lt;br /&gt;
*ID 118000 - 118999: Oarces Web (dev.oarces.com)&lt;br /&gt;
*ID 119000 - 119999: Manuel Berrocal - Absolacom&lt;br /&gt;
*ID 120000 - 120999: Régis Houssin (http://www.inodbox.com)&lt;br /&gt;
*ID 121000 - 121999: Oscss - Shop&lt;br /&gt;
*ID 122000 - 122999: MrSof - la Nation du Web&lt;br /&gt;
*ID 123000 - 123999: Bruno Généré (webiseasy.org)&lt;br /&gt;
*ID 124000 - 124999: backbone internet service (www.backbone.co.at)&lt;br /&gt;
*ID 125000 - 125999: ProgSI (www.progsi.ma)&lt;br /&gt;
*ID 126000 - 126999: Catalanet&lt;br /&gt;
*ID 127000 - 127999: Virgilio Filho pt-BR Brasil (@dolibarr.br)&lt;br /&gt;
*ID 128000 - 128999: Nicolas Frappé France (www.sospc.info)&lt;br /&gt;
*ID 129000 - 129999: Adeo-Informatique&lt;br /&gt;
*ID 130000 - 130999: Technicks ICT (http://www.technicks.eu)&lt;br /&gt;
*ID 131000 - 131999: Joan Louis (itaca.fr)&lt;br /&gt;
*ID 132000 - 132999: Jean-Marie Arsac (https://azimut.fr)&lt;br /&gt;
*ID 133000 - 133999: Oriel Systems Ltd, UK. (www.orielsystems.com)&lt;br /&gt;
*ID 134000 - 134999: ALSOFT PVT. LTD. (https://www.alsoft.org)&lt;br /&gt;
*ID 135000 - 135999: Net-Logic (https://netlogic.fr)&lt;br /&gt;
*ID 136000 - 136050: MONA.RE - France&lt;br /&gt;
*ID 136051 - 136099: La Vida Marketing&lt;br /&gt;
*ID 136100 - 136149: Synergies-Tech France. (https://www.synergies-france.fr/)&lt;br /&gt;
*ID 136150 - 136199: Lyta&lt;br /&gt;
*ID 136200 - 136219: Maison Théophile Leclerc&lt;br /&gt;
*ID 136220 - 136270: SegoFount - Spain&lt;br /&gt;
*ID 136271 - 136320: Labor Dispatch (Simon Sheng , China)&lt;br /&gt;
*ID 136321 - 136370: MB Informatique (https://www.mb-informatique.fr)&lt;br /&gt;
*ID 136371 - 136420: Daxit Solutions (https://www.daxit.be)&lt;br /&gt;
*ID 136421 - 136470: HUSCH GmbH (https://husch-gmbh.de)&lt;br /&gt;
*ID 136471 - 138999: NSINFO (https://www.ns-info.fr)&lt;br /&gt;
*ID 139000 - 139999: Synergies-Tech France. (https://www.synergies-france.fr/)&lt;br /&gt;
*ID 140000 - 140999: Altairis (http://altairis.fr)&lt;br /&gt;
*ID 141000 - 141050: Projet2Team (https://www.projet2team.fr)&lt;br /&gt;
*ID 141051 - 141099: Elistair (http://elistair.com)&lt;br /&gt;
*ID 141100 - 141149: Blue Networks Technologies (https://www.blnt.fr)&lt;br /&gt;
*ID 141150 - 141199: Mainlab S.r.l. (https://www.mainlabonline.it)&lt;br /&gt;
*ID 141200 - 141249: Florian DUFOURG - France&lt;br /&gt;
*ID 141250 - 141299: SoftAddicts - Canada&lt;br /&gt;
*ID 141300 - 141349: Finanboo - (https://www.finanboo.com)&lt;br /&gt;
*ID 141350 - 141399: ConstruxZion Soft - Colombia (https://www.construxzionsoft.com.co)&lt;br /&gt;
*ID 141400 - 141450: COEXDIS - République Démocratique du Congo (https://www.coexdis.com)&lt;br /&gt;
*ID 141451 - 141501: HALFWARE - Algeria (https://www.half-ware.com)&lt;br /&gt;
*ID 141502 - 141999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 142000 - 142049: ITANéA (https://www.itanea.fr)&lt;br /&gt;
*ID 142050 - 142099: ERP Consulting NZ ([https://www.erpconsulting.co.nz www.erpconsulting.co.nz])&lt;br /&gt;
*ID 142100 - 142149: Bloxera GmbH (https://www.bloxera.com)&lt;br /&gt;
*ID 142150 - 142199: Evangelos Souglakos - Greece&lt;br /&gt;
*ID 142200 - 142249: Luc CALARESU - France&lt;br /&gt;
*ID 142250 - 142299: OmnIT Services - Belgique (https://www.omnitservices.biz)&lt;br /&gt;
*ID 142300 - 142349: Gwadeyes - Guadeloupe (https://www.gwadeyes-informatique.com/)&lt;br /&gt;
*ID 142350 - 142399: Solution Libre (https://www.solution-libre.fr/)&lt;br /&gt;
*ID 142400 - 142449: Res Digital (https://res.digital)&lt;br /&gt;
*ID 142450 - 142499: itopie informatique (https://www.itopie.ch)&lt;br /&gt;
*ID 142500 - 142549: Weblinx.IT GbR (https://weblinx.it/)&lt;br /&gt;
*ID 142550 - 142599: ASCI-Automation - Mexico (https://asci-automation.com.mx/)&lt;br /&gt;
*ID 142600 - 142649: ZENKO Design - Japan / France / Spain&lt;br /&gt;
*ID 142650 - 142699: AWeerWolf&lt;br /&gt;
*ID 142700 - 148749: Lysis (https://lysis.net/)&lt;br /&gt;
*ID 142750 - 148999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 149000 - 149999: SydTech - America Central (https://www.sydtech.io/)&lt;br /&gt;
*ID 150000 - 150999: Jeffinfo&lt;br /&gt;
*ID 151000 - 151999: Konverseo (https://konverseo.com)&lt;br /&gt;
*ID 152000 - 152049: Tanguy Pénet (http://tanguype.net)&lt;br /&gt;
*ID 152050 - 156549: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 156550 - 156599: Kreativität Works ([http://www.kreativitat.com http://kreativitat.com])&lt;br /&gt;
*ID 156600 - 156649: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 156650 - 156699: CXI (https://cyrix.co.za)&lt;br /&gt;
*ID 156700 - 159999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 160000 - 160999: Charles-François BENKE (http://www.patas-monkey.com)&lt;br /&gt;
*ID 161000 - 161999: &#039;&#039;&#039;Syrix Software&#039;&#039;&#039; (https://www.syrix.net)  dolidev@syrix.net&lt;br /&gt;
*ID 162000 - 162999: Jacques Rébiscoul&lt;br /&gt;
*ID 163000 - 163999: Open-DSI (https://www.open-dsi.fr)&lt;br /&gt;
*ID 164000 - 164999: Pixelada S. Coop. And. (https://pixelada.org)&lt;br /&gt;
*ID 165000 - 165049: DovConnect&lt;br /&gt;
*ID 165050 - 165099: Mind Operated Systems (https://www.mosystems.biz)&lt;br /&gt;
*ID 165100 - 165150: SD-Formation (https://sdformation.fr)&lt;br /&gt;
*ID 165151 - 165199: NUM&#039;X (https://www.numx-sets.eu)&lt;br /&gt;
*ID 165200 - 165249: Benjam Préjent (https://www.benjam-prejent.fr)&lt;br /&gt;
*ID 165250 - 165299: Dhi Loka Private Limited, India (https://www.dhiloka.com)&lt;br /&gt;
*ID 165300 - 169999: Accellier Limited (https://www.accellier.com/)&lt;br /&gt;
*ID 170000 - 170999: TRIDENT CONSULTING LTD (www.tridentdxb.com)&lt;br /&gt;
*ID 171000 - 171999: LVSInformatique (www.lvsinformatique.com)&lt;br /&gt;
*ID 172000 - 172299: Ray Soft-Systems (https://www.ray-soft-systems.com)&lt;br /&gt;
*ID 172300 - 172349: Günter Lukas Consulting (https://gl.co.at)&lt;br /&gt;
*ID 172350 - 172399: MB Informatique (https://www.mb-informatique.fr)&lt;br /&gt;
*ID 172400 - 172449: Professional Structures Limited (https://pstructures.com)&lt;br /&gt;
*ID 172450 - 172699: IT-BS (https://www.it-bs.fr)&lt;br /&gt;
*ID 172700 - 172749: Indelog (https://www.indelog.fr)&lt;br /&gt;
*ID 172750 - 172799: NS-INFO90 (https://www.ns-info90.fr)&lt;br /&gt;
*ID 172800 - 172849: E-Concept Applications (https://e-concept-applications.fr)&lt;br /&gt;
*ID 172850 - 179999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 180000 - 180999: Triangle Ingénierie&lt;br /&gt;
*ID 181000 - 181999: TI Sin Problemas (https://www.tisinproblemas.com)&lt;br /&gt;
*ID 182000 - 182049: Chipserv Pawel Wlizlo (https://www.testware.it)&lt;br /&gt;
*ID 182050 - 182999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 183000 - 183999: BB2A Anthony Berton (https://www.bb2a.fr)&lt;br /&gt;
*ID 184000 - 184999: DPS PRINTING &amp;amp; DOCUMENTS SOCIEDAD ANONIMA (https://www.dps-lat.com)&lt;br /&gt;
*ID 185000 - 185049: Telioskour (https://github.com/telioskour)&lt;br /&gt;
*ID 185050 - 189999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 190000 - 190999: Diciannove (http://19.coop)&lt;br /&gt;
*ID 191000 - 191999: Elonet (https://elonet.fr)&lt;br /&gt;
*ID 192000 - 192049: IDFOR Consulting (https://www.idfor-consulting.fr/)&lt;br /&gt;
*ID 192050 - 198999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 199000 - 199999: RFMS&lt;br /&gt;
*ID 200000 - 200999: Noxiome&lt;br /&gt;
*ID 201000 - 201999: Sasa Ostrouska (saxa)&lt;br /&gt;
*ID 202000 - 202999: Z-Application&lt;br /&gt;
*ID 203000 - 203099: Elidee - elidee.com&lt;br /&gt;
*ID 203100 - 203999: Garcia MICHEL (soamichel.fr)&lt;br /&gt;
*ID 204000 - 204999: Ari Elbaz elarifr - accedinfo.com&lt;br /&gt;
*ID 205000 - 205999: Kreiz IT&lt;br /&gt;
*ID 206000 - 206999: GBINFO (www.gbinfo.fr)&lt;br /&gt;
*ID 207000 - 207099: MacroProg (https://www.macroprog.com)&lt;br /&gt;
*ID 207100 - 207149: Reactiva Software&lt;br /&gt;
*ID 207150 - 207199: Ndejje University Water Research and Development Centre ([https://github.com/NDUWRDC/LIMS/])&lt;br /&gt;
*ID 207200 - 207299: Massaoud Bouzenad ([https://www.dzprod.net dzprod.net])&lt;br /&gt;
*ID 207300 - 207349: Ksar&lt;br /&gt;
*ID 207350 - 207399: Easylinux (www.easylinux.fr)&lt;br /&gt;
*ID 207400 - 212099: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 212100 - 212149: Audio Vidéo Technologies (https://www.avtek.fr)&lt;br /&gt;
*ID 212150 - 221999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 222000 - 222999:  dolibit  (https://www.dolibit.de)&lt;br /&gt;
*ID 223000 - 223049: Tráfico Canada&lt;br /&gt;
*ID 223050 - 229999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 230000 - 230049: Unareil (https://www.unareil.eu)&lt;br /&gt;
*ID 230050 - 230099: Lyra Network (https://www.lyra.com/)&lt;br /&gt;
*ID 230100 - 230149: Gheorghe Iftimi - CTW - RO&lt;br /&gt;
*ID 230150 - 230199: MEMA Machinery &amp;amp; Tools (https://www.mema.be)&lt;br /&gt;
*ID 230200 - 230249: Teleassist&lt;br /&gt;
*ID 230250 - 230299: Nh Developer&lt;br /&gt;
*ID 230300 - 230499: Chickenforce/code-chicken, IT Services Hahn (https://github.com/code-chicken [http://itservices-hahn.de/ https://itservices-hahn.de])&lt;br /&gt;
*ID 230500 - 230549: Hidup Consulting (https://consulting.hidup.io)&lt;br /&gt;
*ID 230550 - 230599 : CMR Conseil (https://www.weblockup.fr)&lt;br /&gt;
*ID 230600 - 230649 : aFreeMind Studio&lt;br /&gt;
*ID 230650 - 230699 : Unideal (https://www.uni-deal.com)&lt;br /&gt;
*ID 230700 - 230749 : DevLansdes (https://devlandes.com/)&lt;br /&gt;
*ID 230750 - 262699: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 262700 - 262799: Scopen (https://www.scopen.fr)&lt;br /&gt;
*ID 262800 - 274249: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 274250 - 274299: Nerv Project (www.nerv-project.eu)&lt;br /&gt;
*ID 274300 - 274349: Knowhere Consulting S.L. (https://www.knowhere-consulting.eu)&lt;br /&gt;
*ID 274350 - 274399: Milen karaganski (https://blacktiehost.com)&lt;br /&gt;
*ID 274400 - 274449: Vincent MAURY ([https://www.timgroup.fr www.timgroup.fr])&lt;br /&gt;
*ID 274450 - 274499: Daraelmin&lt;br /&gt;
*ID 274500 - 274549: Emilie LAFORET (http://www.ermvallon.com)&lt;br /&gt;
*ID 274550 - 278999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 279000 - 279049: VSDigital Electronics (https://vsdigital.ar) - Argentina&lt;br /&gt;
*ID 279050 - 279999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 280000 - 280049: Bingroup (https://www.beinng.com)&lt;br /&gt;
*ID 280050 - 280099: Medialta (https://medialta.com)&lt;br /&gt;
*ID 280100 - 280149: Cédric Ancelin - Ancode (https://www.dolistore.com/fr/recherche?search_query=ancode)&lt;br /&gt;
*ID 280150 - 289999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 290000 - 290099: BNS - Project doliBRA ([https://www.beinng.com https://www.bns.net.br]) - Brasil&lt;br /&gt;
*ID 290100 - 299999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 300000 - 300049: RapidProgress (https://www.rapidprogress.eu) - Bulgaria&lt;br /&gt;
*ID 300050 : 300099: M@ Solution (https://www.ma-solution.fr/)&lt;br /&gt;
*ID 300100 : 300149: LAVA RUN (https://www.lavarun.re)&lt;br /&gt;
*ID 300150 - 300199: PsyCrow Code&lt;br /&gt;
*ID 300200 : 300249 : Computences (https://www.computences.com/)&lt;br /&gt;
*ID 300250 : 300299 : LEVEL IT (https://levelit.com.ar)&lt;br /&gt;
*ID 300300 : 300349 : Progiseize (https://progiseize.fr)&lt;br /&gt;
*ID 300350 - 300399: MB Informatique (https://www.mb-informatique.fr)&lt;br /&gt;
*ID 300400 - 300449: Anouar Touati&lt;br /&gt;
*ID 300450 - 300499: Martin Danger&lt;br /&gt;
*ID 300500 - 301499: Whale Blows&lt;br /&gt;
*ID 301500 - 301549: Tom Trust - International&lt;br /&gt;
*ID 301550 - 302499: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 302500 - 302549: Diamubi (https://diamubi.com)&lt;br /&gt;
*ID 302550 - 302599: Datolab (https://www.datolab.com)&lt;br /&gt;
*ID 302600 - 302649: DuMaCo (https://www.dumaco.de)&lt;br /&gt;
*ID 302650 - 302699: Resilio SA&lt;br /&gt;
*ID 302700 - 302749: Aroga&lt;br /&gt;
*ID 302750 - 302799: Productivix (https://www.productivix.com)&lt;br /&gt;
*ID 302800 - 302849: Slibzz&lt;br /&gt;
*ID 302850 - 302899: idea design (https://ideadesign.dz)&lt;br /&gt;
*ID 302900 - 302949: AL MISBAH INFORMATIQUE (https://www.almisbah.ma)&lt;br /&gt;
*ID 302950 - 302999: Atis Solutions - France&lt;br /&gt;
*ID 303000 - 303499: Obixav - Nigeria&lt;br /&gt;
*ID 303500 - 303549: buschler plus GmbH, Germany (https://buschler.plus)&lt;br /&gt;
*ID 303550 - 303599: Prestalidaire - France (https://prestalidaire.com)&lt;br /&gt;
*ID 303600 - 313999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 314000 - 314049: Ruemmler IT Solutions (https://www.ruemmler.net)&lt;br /&gt;
*ID 314050 - 319999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 320000 - 320999: Novus Studios (www.novusstudios.it)&lt;br /&gt;
*ID 321000 - 321999: AtooNet (http://www.atoo-net.com)&lt;br /&gt;
*ID 322000 - 329999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 330000 - 330049: XTEC Industries (www.xtec-ind.com)&lt;br /&gt;
*ID 330050 - 330099: 10100 S.R.L. - (www.10100.to)&lt;br /&gt;
*ID 330100 - 330149: AES Dana SRL (https://aes-dana.be)&lt;br /&gt;
*ID 330150 - 330199: Freshcore (https://www.freshcore.fr)&lt;br /&gt;
*ID 330200 - 331999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 332000 - 332099: Gecka (https://gecka.nc)&lt;br /&gt;
*ID 332100 - 332149: Agence Milkshake (http://agencemilkshake.com)&lt;br /&gt;
*ID 332150 - 332199: Daniel Prowald IT – Service (https://prowald-it.de)&lt;br /&gt;
*ID 332200 - 332249: UNITICE (https://unitice.com)&lt;br /&gt;
*ID 332250 - 332299: Sidonie Moulart&lt;br /&gt;
*ID 332300 - 332349: LTDJ (Antonin MARCHAL - Le Temple du Jeu)&lt;br /&gt;
*ID 332350 - 333299: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 333300 - 333349: Sense Africa (http://sense.africa)&lt;br /&gt;
*ID 333350 - 349999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 350000 - 350049: SOUNDOU &amp;amp; MIDAS (https://www.soundou.org/)&lt;br /&gt;
*ID 350050 - 399999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 400000 - 400999: 2byte.es (http://www.2byte.es)&lt;br /&gt;
*ID 401000 - 401999: B&amp;amp;D Informática&lt;br /&gt;
*ID 402000 - 402999: Marcos García de La Fuente (marcosgdf)&lt;br /&gt;
*ID 403000 - 403999: Sergibyte&lt;br /&gt;
*ID 404000 - 404999: Aikhan&lt;br /&gt;
*ID 405000 - 405999: AIME (http://www.aime.mx)&lt;br /&gt;
*ID 406000 - 406999: Som Núvol (https://somnuvol.coop)&lt;br /&gt;
*ID 407000 - 408999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 409000 - 409999: LliureTIC (https://www.lliuretic.cat)&lt;br /&gt;
*ID 410000 - 410999: DoliGov&lt;br /&gt;
*ID 411000 - 411049: GATTEK SARL (https://www.ga-ttek.com)&lt;br /&gt;
*ID 411050 - 419999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 420000 - 420099: BBS Concept&lt;br /&gt;
*ID 420100 - 420199: LeMousticProduction (www.lemousticproduction.info) -&amp;lt; module DoliRH&lt;br /&gt;
*ID 420200 - 421199: VatCheck (www.abnc.be)&lt;br /&gt;
*ID 421200 - 422199: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 422200 - 422999: Artaban (http://artaban.fr)&lt;br /&gt;
*ID 423000 - 423049: cyberesprit&lt;br /&gt;
*ID 423050 - 423099: R.Bossard&lt;br /&gt;
*ID 423100 - 423199: Joliciel (www.joliciel.fr)&lt;br /&gt;
*ID 423200 - 423999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 424000 - 424049: A3sys - Mon-Dolibarr (http://www.mon-dolibarr.fr) by Philazerty&lt;br /&gt;
*ID 424050 - 424099: Pragma-tech (www.pragma-tech.fr)&lt;br /&gt;
*ID 424100 - 424149: Ohoo Solutions (http://www.ohoosolutions.com)&lt;br /&gt;
*ID 424150 - 424199: DAGARCAM Informática (https://www.dagarcam.com/)&lt;br /&gt;
*ID 424200 - 424999: Lab51 (https://github.com/lab51org)&lt;br /&gt;
*ID 425000 - 425999: Sébastien SERRE Thivinfo (www.thivinfo.com)&lt;br /&gt;
*ID 426000 - 426099: Arkesis-Solution&lt;br /&gt;
*ID 426100 - 426149: GetLandy (www.getlandy.com)&lt;br /&gt;
*ID 426150 - 426649: OOB Software&lt;br /&gt;
*ID 426650 - 426849: Soft-Task Serviços e Sistemas (www.soft-task.com.br)&lt;br /&gt;
*ID 426850 - 426999: Bruno Caldas (https://github.com/BCaldas)&lt;br /&gt;
*ID 427000 - 427999: Kevin GUERRIER (alias xcl.saian)&lt;br /&gt;
*ID 428000 - 428099: af83&lt;br /&gt;
*ID 428100 - 428199: Arnaud Serrut - Adalon&lt;br /&gt;
*ID 428200 - 428249: imschweiler consulting (http://www.imschweiler-consulting.de&#039;&#039;&#039;&amp;lt;nowiki/&amp;gt;&#039;&#039;&#039;)&lt;br /&gt;
*ID 428250 - 428299: AL1FO&lt;br /&gt;
*ID 428300 - 428349: Federico García-Patiño Barbolani (&amp;lt;federico.garcia.patino@gmail.com&amp;gt;)&lt;br /&gt;
*ID 428350 - 428399: INTM Groupe - France (www.intm.com)&lt;br /&gt;
*ID 428400 - 428449: Nick Fragoulis - Greece&lt;br /&gt;
*ID 428450 - 428499: Letusgeek - France&lt;br /&gt;
*ID 428500 - 428549: hkwhitten - USA&lt;br /&gt;
*ID 428550 - 428999: SmartOne&lt;br /&gt;
*ID 429000 - 429999: induslab&lt;br /&gt;
*ID 430000 - 430099: Mixity sprl (www.mixity.be)&lt;br /&gt;
*ID 430100 - 430199: sgiraud&lt;br /&gt;
*ID 430200 - 430299: Merlion TI (www.merlion-si.com.br)&lt;br /&gt;
*ID 430300 - 431299: Libre Expert (www.libre-expert.com)&lt;br /&gt;
*ID 431300 - 431399: ptibogxiv (www.ptibogxiv.net)&lt;br /&gt;
*ID 431400 - 431499: Befox (www.befox.fr)&lt;br /&gt;
*ID 431500 - 431599: rue Béjo (www.ruebejo.fr)&lt;br /&gt;
*ID 431600 - 431699: Avizzeo (www.avizzeo.com)&lt;br /&gt;
*ID 431700 - 432199: Multisistemas (www.multisistemas.com.sv)&lt;br /&gt;
*ID 432200 - 432399: Burbuja - Chile (www.burbuja.cl)&lt;br /&gt;
*ID 432400 - 433399: INOVEA CONSEIL (https://www.inovea-conseil.com)&lt;br /&gt;
*ID 433400 - 434399: Rachid HRICH - Maroc (HricH ServiceS.)&lt;br /&gt;
*ID 434400 - 435399: Lance Bleakley - LanceIT (www.lanceit.net)&lt;br /&gt;
*ID 435400 - 435999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 436000 - 436099: SOWEBIO (www.soweb.io)&lt;br /&gt;
*ID 436100 - 436199: CAP-REL (www.cap-rel.fr)&lt;br /&gt;
*ID 436200 - 436300: TDE-INFORMATIQUE (www.tde-informatique.fr)&lt;br /&gt;
*ID 436301 - 436349: Evarisk ([https://www.evarisk.com/id-module-dolibarr/ www.evarisk.com])&lt;br /&gt;
*ID 436350 - 436399: Eoxia ([https://www.eoxia.com/dolibarr/modules/ www.eoxia.com])&lt;br /&gt;
*ID 436400 - 437399: Mohamed AHERDANE - Morocco - IT Consultant ( www.wave.ma )&lt;br /&gt;
*ID 437400 - 437449: Martin Neubauer - Germany&lt;br /&gt;
*ID 437450 - 437599: Club1click (www.club1click.es)&lt;br /&gt;
*ID 437600 - 437629: Coulon Vincent (https://github.com/HoverEpic)&lt;br /&gt;
*ID 437630 - 437649: Aytechnet (https://www.aytechnet.fr/) - François Pons&lt;br /&gt;
*ID 437650 - 437699: LibreMaster (https://libremaster.com) - Christophe T.&lt;br /&gt;
*ID 437700 - 437749: STELLAR Broadband (https://www.stellarbb.com) - U.S.A. - Philip Laycock&lt;br /&gt;
*ID 437750 - 437799: DIGITA.LU Ajous Solutions&lt;br /&gt;
*ID 437800 - 437850: iProspective (https://iprospective.fr) - Mathieu Moulin&lt;br /&gt;
*ID 437851 - 437900: Theobald Groupe.&lt;br /&gt;
*ID 437901 - 437950: Neuronnexion (http://neuronnexion.coop)&lt;br /&gt;
*ID 437951 - 437952: jmbc - APIA-ASSO (https://www.apia-asso.fr)&lt;br /&gt;
*ID 437953 - 438002: IPCZEN SARL (https://www.ipczeninformatique.fr/)&lt;br /&gt;
*ID 438003 - 438052: FESF IT Department (https://fesf.org.pk)&lt;br /&gt;
*ID 438053 - 438103: Pilot Engineering team&lt;br /&gt;
*ID 438104 - 438153: u2042 (https://u2042.com)&lt;br /&gt;
*ID 438154 - 438204: Djair E Pereira (ocultooooo@gmail.com) - Brasil&lt;br /&gt;
*ID 438205 - 438255: yoandm (https://yoandm.com)&lt;br /&gt;
*ID 438256 - 438299: Free&lt;br /&gt;
*ID 438300 - 438399: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 438400 - 439399: Tetras Libre - France - Développement logiciels libres (www.tetras-libre.fr)&lt;br /&gt;
*ID 439400 - 440399: Dolibarr-pro - France - Développement Dolibarr (www.dolibarr-pro.com)&lt;br /&gt;
*ID 440400 - 441399: Quidlab Co., Ltd - Thailand - ( www.quidlab.com )&lt;br /&gt;
*ID 441400 - 442399: Ide@log - France - (https://www.idealog-info.net) - Laurent Leblanc&lt;br /&gt;
*ID 442400 - 443399: Valerio Bianchi (www.valeriobianchi.com)&lt;br /&gt;
*ID 443400 - 444399: delassalle - France - (www.delassalle.fr) - Joseph Delassalle&lt;br /&gt;
*ID 444400 - 445399: Webartis - Maroc - (www.webartis.net) - François Dry&lt;br /&gt;
*ID 445400 - 445499: SCOP Au-delà des nuages - France&lt;br /&gt;
*ID 445500 - 445999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 446000 - 446999: iouston (http://www.iouston.com) - France - Julien Marchand&lt;br /&gt;
*ID 447000 - 447999: rSanjoSEO - Rafael San José Tovar (www.rsanjoseo.com) - Spain&lt;br /&gt;
*ID 448000 - 448999: Code 42 (www.code42.fr)&lt;br /&gt;
*ID 449000 - 449999: TakePOS (www.takepos.com)&lt;br /&gt;
*ID 450000 - 450999: Pierre ARDOIN&lt;br /&gt;
*ID 451000 - 451999: Éditeur depordi.fr&lt;br /&gt;
*ID 452000 - 452999: Dylan NAKONG&lt;br /&gt;
*ID 453000 - 453999: Menahd Ouchenir - France - menahd-ouchenir.com&lt;br /&gt;
*ID 454000 - 454999: Withheld - Canada&lt;br /&gt;
*ID 455000 - 455999: Gaëtan MAISON - Info Libre @ Dom - France (https://www.infolibreadom.com)&lt;br /&gt;
*ID 456000 - 456999: Laurent LEBLEU - B.L.C. - Blue Line Company - Lille - France (www.bluelinecompany.fr/dolibarr)&lt;br /&gt;
*ID 457000 - 457999: Sébastien BOUCHER&lt;br /&gt;
*ID 458000 - 458999: Lester HERNÁNDEZ - Argentina - (freelancerlrhd@gmail.com)&lt;br /&gt;
*ID 459000 - 459999: Infopen - France&lt;br /&gt;
*ID 460000 - 460049: torvista - Spain&lt;br /&gt;
*ID 460050 - 460999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 461000 - 461999: MEGALOGI - Maroc (www.erpcloud.ma)&lt;br /&gt;
*ID 462000 - 462999: Making Digital (www.making-digital.fr) - France&lt;br /&gt;
*ID 463000 - 463999: linx s.r.l.s.&lt;br /&gt;
*ID 464000 - 464999: NimbleCubed Inc. (www.nimblecubed.com)&lt;br /&gt;
*ID 465000 - 465999: Artefacts - CourantAlternatif&lt;br /&gt;
*ID 466000 - 466999: CDM Consultores - (www.cdm.guru)&lt;br /&gt;
*ID 467000 - 467999: M71 Service GmbH - (www.m71-service.de)&lt;br /&gt;
*ID 468000 - 468049: Clément Segonzac - France (clement.segonzac@gmail.com)&lt;br /&gt;
*ID 468050 - 468099: Flavien Belli - France (https://github.com/Marshlyin || belliflaviencontactpro@gmail.com)&lt;br /&gt;
*ID 468100 - 468119: Chl (https://code.bugness.org/Dolibarr)&lt;br /&gt;
*ID 468120 - 468169: Commotron GmbH (https://www.commotron.com/)&lt;br /&gt;
*ID 468170 - &#039;&#039;&#039;468219&#039;&#039;&#039;: Infans Group (franck.lauby@infans.fr)&lt;br /&gt;
*ID &#039;&#039;&#039;468175&#039;&#039;&#039; - &#039;&#039;&#039;468199&#039;&#039;&#039;: Gaëlle Rauffet - France (kiwiscan.net)&lt;br /&gt;
*ID &#039;&#039;&#039;468200&#039;&#039;&#039; - 468249: Paulo Oliveira - Brasil (paulorcdo@gmail.com)&lt;br /&gt;
*ID 468250 - 468269:  CD-Systems - France (https://www.cd-systems.fr)&lt;br /&gt;
*ID 468270 - 468299: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 468300 - 468349: Uvensys - Germany (https://uvensys.de)&lt;br /&gt;
*ID 468350 - 468399: Laudeco - Belgium (http://github.com/laudeco)&lt;br /&gt;
*ID 468400 - 468449: Alexis LAURIER - France (https://www.alexislaurier.fr)&lt;br /&gt;
*ID 468450 - 468499: Mehdi Belkhayat - Maroc (https://opensi.ma)&lt;br /&gt;
*ID 468500 - 468599: InvIT GmbH - Germany (https://invit.sh)&lt;br /&gt;
*ID 468600 - 468649: Ricardo Sequeira - Portugal (https://ricardo-sequeira.com)&lt;br /&gt;
*ID 468650 - 468699: J-IT - Belgique (https://www.j-it.be)&lt;br /&gt;
*ID 468700 - 468749: Fidesio - France (https://www.fidesio.com/)&lt;br /&gt;
*ID 468750 - 468799: Sgestion - Spain (http://www.sgestion.net/)&lt;br /&gt;
*ID 468800 - 468849: Denis JULIEN - Brasil (matrinxa@free.fr)&lt;br /&gt;
*ID 468850 - 468899: Mmariko - Module GED - Effios&lt;br /&gt;
*ID 468900 - 468949: Maazou Amadou Abdoul aziz - Maroc (yaronfada@gmail.com)&lt;br /&gt;
*ID 468950 - 468999: Alexis LAURIER - France (https://www.alexislaurier.fr)&lt;br /&gt;
*ID 469000 - 469049: John Livingston (https://github.com/JohnXLivingston/)&lt;br /&gt;
*ID 469050 - 469099: Macrorom ICT-services (https://macrorom.nl/)&lt;br /&gt;
*ID 469100 - 469149: HABOT IT - France (https://habot.it)&lt;br /&gt;
*ID 469150 - 469159: CaribbeanConsult.Com CCC - France Guadeloupe (https://dolibarr.ccc.gp)&lt;br /&gt;
*ID 469160 - 469171: GMBG - Portugal&lt;br /&gt;
*ID 469172 - 469199: BGi Lda - Portugal&lt;br /&gt;
*ID 469200 - 469949: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 469950 - 469999: Goldoweb (http://goldoweb.com)&lt;br /&gt;
*ID 470000 - 470999: Reindeer Digital (https://rdeer.cz)&lt;br /&gt;
*ID 471000 - 471099: CAP-REL (www.cap-rel.fr)&lt;br /&gt;
*ID 471100 - 471199: M. Morillon&lt;br /&gt;
*ID 471200 - 471209: Pablo Nuñez&lt;br /&gt;
*ID 471210 - 471249: FANEL A.Ş  (https://www.fanel.com.tr)&lt;br /&gt;
*ID 471250 - 480999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 481000 - 481999: Alhaidab-ITIS (https://alhaidab.dolibarr.sd)&lt;br /&gt;
*ID 482000 - 482999: Basix IT (https://www.basix.de)&lt;br /&gt;
*ID 483000 - 483049: SASCO SpA (https://www.sasco.cl)&lt;br /&gt;
*ID 483050 - 483099: WIP Engineering (https://www.wip-gmbh.com)&lt;br /&gt;
*ID 483100 - 483149: J.Kaiser&lt;br /&gt;
*ID 483150 - 483199: CodLines (https://www.codlines.com)&lt;br /&gt;
*ID 483200 - 484999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 485000 - 485049: Gest Info Service Plus (contact@gest-plus.fr)&lt;br /&gt;
*ID 485050 - 489999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 490000 - 490049: VOLD (https://vold.lu)&lt;br /&gt;
*ID 490050 - 490999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 491000 - 491049: NORD ERP CRM (https://www.nord-erp-crm.fr/)&lt;br /&gt;
*ID 491050 - 491099: KJR-online (https://kjr-online.fr/)&lt;br /&gt;
*ID 491100 - 491149: eNova&lt;br /&gt;
*ID 491150 - 491199: App 4 Business&lt;br /&gt;
*ID 491200 - 491249: Mil24 (http://www.mil24.com.py)&lt;br /&gt;
*ID 491250 - 491299: M2AM&lt;br /&gt;
*ID 491300 - 491349: luigifab (https://github.com/luigifab), also reuse id:105009 for Sentry fork&lt;br /&gt;
*ID 491350 - 491399: Frédéric France (https://github.com/frederic34)&lt;br /&gt;
*ID 491400 - 491449: E-dem (https://www.e-dem.com/)&lt;br /&gt;
*ID 491450 - 491999: &#039;&#039;&#039;Free (take ranges of 50 only please at once, ask us for more)&#039;&#039;&#039;&lt;br /&gt;
*ID 492000 - 492999: Anura (https://www.anura.fr/)&lt;br /&gt;
*ID 499000 - 499999: IT GENIUSES (https://www.itgeniuses.com)&lt;br /&gt;
&lt;br /&gt;
DO NOT ADD RECORD HERE, PLEASE FILL HOLES FIRST !!!!&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
=ID &amp;gt; 500000=&lt;br /&gt;
&lt;br /&gt;
This range can&#039;t be reserved. It is a common range. If you don&#039;t plan to distribute your module, you can use an ID in this range with no need to reserve it.&lt;br /&gt;
&lt;br /&gt;
{{Flag en}}&lt;br /&gt;
If you don&#039;t already have reserved ids and need some, please don&#039;t use hazardous number and use a number higher than 500000, but it is better to ask a wiki account, and reserve your own range by editing the  100000 - 499999 range (50 ids at once, 1000 ids maximum per partner).&lt;br /&gt;
&lt;br /&gt;
{{Flag fr}}&lt;br /&gt;
Si vous n&#039;avez pas de numéros réservés et en avez besoin, n&#039;utilisez pas de chiffres au hasard et utilisez une valeur supérieure à 500000, toutefois, il est préférable d&#039;obtenir un compte wiki, et  réserver vous-même votre plage en ajoutant votre entrée dans la zone 100000 - 499999 (par lot de 50 d&#039;abord, pas plus de 1000 numéros par partenaire).&lt;br /&gt;
&lt;br /&gt;
{{Flag sp}}&lt;br /&gt;
Si no dispone de número reservado y necesita, no use cifras redondeadas y usa un valor superior a 500000. Si tiene una cuenta wiki, puede reservarse usted mismo sus id añadiendo su entrada en la zona 100000 - 499999 (no más de 1000 id por partner).&lt;br /&gt;
&lt;br /&gt;
{{Flag zh}}&lt;br /&gt;
如果您没有预留ID，并且现在需要预留，请不要使用随机数字，要使用大于500000的值。但最好是获得一个wiki帐户，并通过在字段100000-499999中添加您的条目来保留您的ID范围（第一次限制为50个ID，每个合作伙伴不超过1000个ID）。&lt;/div&gt;</summary>
		<author><name>AlexBordaraud</name></author>
	</entry>
</feed>