From 1436213f1c32899d1f758fbbc393f8b8cbe22bf6 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 27 Dec 2017 10:34:40 +0300 Subject: [PATCH] Update Logger.php --- retailcrm/src/Components/Logger.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/retailcrm/src/Components/Logger.php b/retailcrm/src/Components/Logger.php index d209e27..c1530e3 100644 --- a/retailcrm/src/Components/Logger.php +++ b/retailcrm/src/Components/Logger.php @@ -101,10 +101,9 @@ class Logger { $domain = $this->container->domain; $recipient = $this->container->support; - $subject = 'Legacy notification'; - $headers = 'From: noreply@retailcrm.ru' . "\r\n" . - 'X-Mailer: PHP/' . phpversion(); - $message = "New log message from $domain:\n\n$message"; + $subject = sprintf("Legacy notification from %s", $domain); + $headers = sprintf("From: %s\r\nX-Mailer: PHP/%s", $this->container->notify, phpversion()); + $message = sprintf("New log message from %s:\n\n%s\n", $domain, $message); mail($recipient, $subject, $message, $headers); }