Issue Feature Closed

#14951PNG and CSS MIME type in t3lib_htmlmail

old_jacobh 08/30/05, 13:25 updated 08/12/06, 14:21

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.