only log sent mail if _LOG_SENT_MAIL is set
This commit is contained in:
parent
dfd3a4e581
commit
6d0c9bb784
|
@ -19,6 +19,7 @@ class Mailer {
|
||||||
$from_combined = $from_name ? "$from_name <$from_address>" : $from_address;
|
$from_combined = $from_name ? "$from_name <$from_address>" : $from_address;
|
||||||
$to_combined = $to_name ? "$to_name <$to_address>" : $to_address;
|
$to_combined = $to_name ? "$to_name <$to_address>" : $to_address;
|
||||||
|
|
||||||
|
if (defined('_LOG_SENT_MAIL') && _LOG_SENT_MAIL)
|
||||||
Logger::get()->log("Sending mail from $from_combined to $to_combined <$to_address> [$subject]: $message");
|
Logger::get()->log("Sending mail from $from_combined to $to_combined <$to_address> [$subject]: $message");
|
||||||
|
|
||||||
// HOOK_SEND_MAIL plugin instructions:
|
// HOOK_SEND_MAIL plugin instructions:
|
||||||
|
|
Loading…
Reference in New Issue