[
https://issues.apache.org/jira/browse/LOG4PHP-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Habunek closed LOG4PHP-144.
--------------------------------
Resolution: Fixed
Assignee: Ivan Habunek
Fixed this, also improved code to check mandatory parameters and removed the
dry mode which was a bad idea anyway.
> LoggerAppenderMail not using the layout's Content-Type
> ------------------------------------------------------
>
> Key: LOG4PHP-144
> URL: https://issues.apache.org/jira/browse/LOG4PHP-144
> Project: Log4php
> Issue Type: Bug
> Components: Code
> Environment: Unrelated
> Reporter: Nicolas
> Assignee: Ivan Habunek
> Priority: Minor
> Attachments: content-type.patch
>
>
> When you pair a LoggerAppenderMail and a LoggerLayoutHtml, the e-mail is sent
> with the text/plain Content-Type header, causing the HTML to be displayed as
> plain text. The LoggerAppenderMail seems to ignore the layout's content type.
> A simple addition to the mail() function's headers fixes this issue as far as
> I'm concerned:
> "From: {$from}\r\nContent-Type: {$this->layout->getContentType()}\r\n"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira