*/
function securemail_emailer_send_prepare(App &$a, IEmail &$email)
{
- DI::logger()->debug('start securemail', ['email' => $email]);
-
if (empty($email->getRecipientUid())) {
return;
}
$enable_checked = DI::pConfig()->get($uid, 'securemail', 'enable');
if (!$enable_checked) {
- DI::logger()->debug('No check', ['email' => $email]);
+ DI::logger()->debug('No securemail enabled.');
return;
}
$email = $email->withMessage($armored_encrypted, null);
- DI::logger()->debug('End securemail', ['email' => $email]);
-
} catch (Exception $e) {
DI::logger()->warning('Encryption failed.', ['email' => $email, 'exception' => $e]);
}