mirror of
https://github.com/retailcrm/legacy.git
synced 2024-11-23 05: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;
|
||||
$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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user