ソースを参照

Merge pull request #679 from glensc/patch-1

Update NativeMailerHandler.php
Jordi Boggiano 10 年 前
コミット
432f44668e
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/Monolog/Handler/NativeMailerHandler.php

+ 2 - 1
src/Monolog/Handler/NativeMailerHandler.php

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