1
0
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:
Elan Ruusamäe
2015-11-09 11:07:19 +02:00
parent 35932023f1
commit 745100db42

View File

@@ -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);
}
}