Update Logger.php

This commit is contained in:
Alex Lushpai 2017-12-27 10:34:40 +03:00 committed by GitHub
parent 59fc87a0c5
commit 1436213f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}