]> git.mxchange.org Git - friendica-addons.git/commitdiff
Increase priority for securemail over PHP SMTP mail
authorPhilipp <admin@philipp.info>
Sat, 29 May 2021 18:59:51 +0000 (20:59 +0200)
committerPhilipp <admin@philipp.info>
Sat, 29 May 2021 18:59:51 +0000 (20:59 +0200)
phpmailer/phpmailer.php
securemail/securemail.php

index 25b9404716de5b90b920bd47e4eb06c7809372e8..3a8898b414b9eaf2ce5a7f8c1ca91af766c53165 100644 (file)
@@ -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)
index fb801a4ce84bc8f03e88aab4d7fe438908631f12..3f9cadb27de37cec2d19d897a5baf6e302625221 100644 (file)
@@ -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');
 }