mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 01:26:11 +02:00
Auto-detecting of mime type for emails and switched to HtmlFormatter for emails by default, fixes #577
This commit is contained in:
@@ -48,8 +48,13 @@ class MandrillHandler extends MailHandler
|
||||
*/
|
||||
protected function send($content, array $records)
|
||||
{
|
||||
$mime = null;
|
||||
if ($this->isHtmlBody($content)) {
|
||||
$mime = 'text/html';
|
||||
}
|
||||
|
||||
$message = clone $this->message;
|
||||
$message->setBody($content);
|
||||
$message->setBody($content, $mime);
|
||||
$message->setDate(time());
|
||||
|
||||
$ch = curl_init();
|
||||
|
Reference in New Issue
Block a user