Merge pull request #23278 from OPEN-DSI/develop_new_add_sent_info_on_send_email_after_hook

NEW : Add sent info in the parameters provided to the hook sendMailAfter
This commit is contained in:
Laurent Destailleur 2022-12-21 20:04:11 +01:00 committed by GitHub
commit 2256df9389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1123,7 +1123,7 @@ class CMailFile
return 'Bad value for sendmode';
}
$parameters = array();
$parameters = array('sent' => $res);
$action = '';
$reshook = $hookmanager->executeHooks('sendMailAfter', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) {