diff options
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Mail.php b/core/Mail.php index bbd8255e93..09a3936a36 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -80,4 +80,13 @@ class Mail extends Zend_Mail Mail::setDefaultTransport($tr); ini_set("smtp_port", $mailConfig['port']); } + + public function send($transport = NULL) + { + if (defined('PIWIK_TEST_MODE')) { // hack + Piwik::postTestEvent("Test.Mail.send", array($this)); + } else { + return parent::send($transport); + } + } } |