mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 05:36:45 +02:00
Update NativeMailerHandler.php
don't calculate parameters in a loop
This commit is contained in:
@@ -122,8 +122,9 @@ class NativeMailerHandler extends MailHandler
|
||||
if ($this->getContentType() == 'text/html' && false === strpos($headers, 'MIME-Version:')) {
|
||||
$headers .= 'MIME-Version: 1.0' . "\r\n";
|
||||
}
|
||||
$parameters = implode(' ', $this->parameters);
|
||||
foreach ($this->to as $to) {
|
||||
mail($to, $this->subject, $content, $headers, implode(' ', $this->parameters));
|
||||
mail($to, $this->subject, $content, $headers, $parameters);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user