mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-18 19:01:31 +02:00
Merge pull request #158 from infynyxx/mail_handler_minor_enhancement
Minor enhancement for NativeMailHandler
This commit is contained in:
@@ -58,8 +58,10 @@ class NativeMailerHandler extends MailHandler
|
|||||||
*/
|
*/
|
||||||
protected function send($content, array $records)
|
protected function send($content, array $records)
|
||||||
{
|
{
|
||||||
|
$content = wordwrap($content, 70);
|
||||||
|
$headers = implode("\r\n", $this->headers) . "\r\n";
|
||||||
foreach ($this->to as $to) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user