Actions
Feature #14951
closedPNG and CSS MIME type in t3lib_htmlmail
Start date:
2005-08-30
Due date:
% Done:
0%
Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:
Description
In t3lib_htmlmail, the MIME type for PNG attachments is set to text/html, but they should be image/png. This causes several mail clients to display newsletters in a strange way. It would also be nice if the MIME type for CSS is added.
In extractMediaLinks(), insert:
case "png":
In getExtendedUrl(), insert:
if ($fileInfo["fileext"] == "png") {$res["content_type"] = "image/png";}
if ($fileInfo["fileext"] == "css") {$res["content_type"] = "text/css";}
(issue imported from #M1421)
Updated by Stanislas Rolland almost 19 years ago
Fixed in CVS. Branch TYPO3_4-0.
Actions