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

apply wordwrap and implode before doing iteration

This commit is contained in:
Prajwal Tuladhar
2013-02-02 15:50:01 -05:00
parent 957ee8d0d6
commit 01790263f4

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