Skip to content

Commit

Permalink
PHPMailer :: Neue EPs PHPMAILER_PRE_SEND + PHPMAILER_POST_SEND (#5361)
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis committed Oct 13, 2022
1 parent 59c7c0c commit 5ae13d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions redaxo/src/addons/phpmailer/lib/mailer.php
Expand Up @@ -104,6 +104,8 @@ public function send()
return rex_timer::measure(__METHOD__, function () {
$addon = rex_addon::get('phpmailer');

rex_extension::registerPoint(new rex_extension_point('PHPMAILER_PRE_SEND', $this));

$detour = $addon->getConfig('detour_mode') && '' != $addon->getConfig('test_address');

// Clears the CCs and BCCs if detour mode is active
Expand Down Expand Up @@ -142,6 +144,9 @@ public function send()
if (self::LOG_ALL == $addon->getConfig('logging')) {
$this->log('OK');
}

rex_extension::registerPoint(new rex_extension_point('PHPMAILER_POST_SEND', $this));

return true;
});
}
Expand Down

0 comments on commit 5ae13d3

Please sign in to comment.