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

Merge pull request #158 from infynyxx/mail_handler_minor_enhancement

Minor enhancement for NativeMailHandler
This commit is contained in:
Jordi Boggiano
2013-02-10 14:05:27 -08:00

View File

@@ -58,8 +58,10 @@ class NativeMailerHandler extends MailHandler
*/
protected function send($content, array $records)
{
$content = wordwrap($content, 70);
$headers = implode("\r\n", $this->headers) . "\r\n";
foreach ($this->to as $to) {
mail($to, $this->subject, wordwrap($content, 70), implode("\r\n", $this->headers) . "\r\n");
mail($to, $this->subject, $content, $headers);
}
}
}