1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-25 11:57:42 +02:00

only log sent mail if _LOG_SENT_MAIL is set

This commit is contained in:
Andrew Dolgov 2019-03-06 08:55:10 +03:00
parent dfd3a4e581
commit 6d0c9bb784

View File

@ -19,7 +19,8 @@ class Mailer {
$from_combined = $from_name ? "$from_name <$from_address>" : $from_address;
$to_combined = $to_name ? "$to_name <$to_address>" : $to_address;
Logger::get()->log("Sending mail from $from_combined to $to_combined <$to_address> [$subject]: $message");
if (defined('_LOG_SENT_MAIL') && _LOG_SENT_MAIL)
Logger::get()->log("Sending mail from $from_combined to $to_combined <$to_address> [$subject]: $message");
// HOOK_SEND_MAIL plugin instructions:
// 1. return 1 or true if mail is handled