diff --git a/core/action.class.inc.php b/core/action.class.inc.php index adbe7f564..97fb1d2ae 100644 --- a/core/action.class.inc.php +++ b/core/action.class.inc.php @@ -277,7 +277,9 @@ class ActionEmail extends ActionNotification } else { + $oKPI = new ExecutionKPI(); $this->m_aMailErrors = array_merge($this->m_aMailErrors, $oEmail->Send()); + $oKPI->ComputeStats('Send mail', $sTo); } } }