src/Debugger/Logger.php
public function defaultMailer($message, string $email): void
    {
        $host = \preg_replace('#[^\w.-]+#', '', $_SERVER['HTTP_HOST'] ?? php_uname('n'));
        $parts = \str_replace(
            ["\r\n", "\n"],
            ["\n", PHP_EOL],
            [
                'headers' => \implode("\n", [
                        'From: ' . ($this->fromEmail ?: "noreply@$host"),
                        'X-Mailer: Tracy',
                        'Content-Type: text/plain; charset=UTF-8',
                        'Content-Transfer-Encoding: 8bit',
                    ]) . "\n",
                'subject' => "PHP: An error occurred on the server $host",
                'body' => Dumper::formatMessage($message) . "\n\nsource: " . Helpers::getSource(),
            ]
        );

        \mail($email, $parts['subject'], $parts['body'], $parts['headers']);
    }
public function defaultMailer($message, string $email): void
    {
        $host = \preg_replace('#[^\w.-]+#', '', $_SERVER['HTTP_HOST'] ?? php_uname('n'));
        $parts = \str_replace(
            ["\r\n", "\n"],
            ["\n", PHP_EOL],
            [
                'headers' => \implode("\n", [
                        'From: ' . ($this->fromEmail ?: "noreply@$host"),
                        'X-Mailer: Tracy',
                        'Content-Type: text/plain; charset=UTF-8',
                        'Content-Transfer-Encoding: 8bit',
                    ]) . "\n",
                'subject' => "PHP: An error occurred on the server $host",
                'body' => Dumper::formatMessage($message) . "\n\nsource: " . Helpers::getSource(),
            ]
        );

        \mail($email, $parts['subject'], $parts['body'], $parts['headers']);
    }
public function defaultMailer ( $ message , string $ email ) : void { $ host = \ preg_replace ( '#[^\w.-]+#' , '' , $ _SERVER [ 'HTTP_HOST' ] ?? php_uname ( 'n' ) ) ; $ parts = \ str_replace ( [ "\r\n" , "\n" ] , [ "\n" , PHP_EOL ] , [ 'headers' => \ implode ( "\n" , [ 'From: ' . ( $ this -> fromEmail ? : "noreply@$host" ) , 'X-Mailer: Tracy' , 'Content-Type: text/plain; charset=UTF-8' , 'Content-Transfer-Encoding: 8bit' , ] ) . "\n" , 'subject' => "PHP: An error occurred on the server $host" , 'body' => Dumper :: formatMessage ( $ message ) . "\n\nsource: " . Helpers :: getSource ( ) , ] ) ; \ mail ( $ email , $ parts [ 'subject' ] , $ parts [ 'body' ] , $ parts [ 'headers' ] ) ; }
Default mailer.

@param  mixed
@param  string

@return void
@internal
Default mailer .