mirror of
https://github.com/retailcrm/legacy.git
synced 2024-11-27 07:46:03 +03:00
Update Logger.php
This commit is contained in:
parent
59fc87a0c5
commit
1436213f1c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user