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; $domain = $this->container->domain;
$recipient = $this->container->support; $recipient = $this->container->support;
$subject = 'Legacy notification'; $subject = sprintf("Legacy notification from %s", $domain);
$headers = 'From: noreply@retailcrm.ru' . "\r\n" . $headers = sprintf("From: %s\r\nX-Mailer: PHP/%s", $this->container->notify, phpversion());
'X-Mailer: PHP/' . phpversion(); $message = sprintf("New log message from %s:\n\n%s\n", $domain, $message);
$message = "New log message from $domain:\n\n$message";
mail($recipient, $subject, $message, $headers); mail($recipient, $subject, $message, $headers);
} }