From: Philipp Date: Sat, 29 May 2021 18:59:51 +0000 (+0200) Subject: Increase priority for securemail over PHP SMTP mail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bb8c01eba7b870ac67dbde3e500bf9454ea12226;p=friendica-addons.git Increase priority for securemail over PHP SMTP mail --- diff --git a/phpmailer/phpmailer.php b/phpmailer/phpmailer.php index 25b94047..3a8898b4 100644 --- a/phpmailer/phpmailer.php +++ b/phpmailer/phpmailer.php @@ -20,7 +20,7 @@ require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'a function phpmailer_install() { Hook::register('load_config' , __FILE__, 'phpmailer_load_config'); - Hook::register('emailer_send_prepare', __FILE__, 'phpmailer_emailer_send_prepare'); + Hook::register('emailer_send_prepare', __FILE__, 'phpmailer_emailer_send_prepare', 5); } function phpmailer_load_config(App $a, ConfigFileLoader $loader) diff --git a/securemail/securemail.php b/securemail/securemail.php index fb801a4c..3f9cadb2 100644 --- a/securemail/securemail.php +++ b/securemail/securemail.php @@ -19,9 +19,9 @@ require_once __DIR__ . '/vendor/autoload.php'; function securemail_install() { Hook::register('addon_settings', 'addon/securemail/securemail.php', 'securemail_settings'); - Hook::register('addon_settings_post', 'addon/securemail/securemail.php', 'securemail_settings_post'); + Hook::register('addon_settings_post', 'addon/securemail/securemail.php', 'securemail_settings_post', 10); - Hook::register('emailer_send_prepare', 'addon/securemail/securemail.php', 'securemail_emailer_send_prepare'); + Hook::register('emailer_send_prepare', 'addon/securemail/securemail.php', 'securemail_emailer_send_prepare', 10); Logger::log('installed securemail'); }