summaryrefslogtreecommitdiff
path: root/classes/mailer.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/mailer.php')
-rw-r--r--classes/mailer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/mailer.php b/classes/mailer.php
index fbdf111a7..eea9f5ff6 100644
--- a/classes/mailer.php
+++ b/classes/mailer.php
@@ -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