Files
dolibarr/htdocs/core
DarmonNoah 7cd3abb9f8 Fixed Bug : email sending test #36741 (#37107)
Fixed Bug : email sending test #36741
@defrance 
-->
Issue fixed
The problem was caused by initializing $result = 0 in core/actions_sendmails.inc.php.
When sending a test email from Setup → Emails, there is no $object to fetch. As a result, $result remained 0 and the code incorrectly triggered ErrorFailedToReadObject.

The fix consists in explicitly setting $result = 1 when no $object is provided (test email / generic email context). This correctly treats the absence of an object as a valid case and restores the ability to send test emails, while keeping $result properly initialized.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 00:00:12 +01:00
..
2026-02-07 23:57:41 +01:00
2026-01-20 13:57:33 +01:00
2026-01-13 15:56:03 +01:00
2026-01-20 13:22:48 +01:00