1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 23:24:02 +02:00

Merge pull request #679 from glensc/patch-1

Update NativeMailerHandler.php
This commit is contained in:
Jordi Boggiano
2015-11-09 14:53:39 +00:00

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