Project

General

Profile

Actions

Feature #14951

closed

PNG and CSS MIME type in t3lib_htmlmail

Added by old_jacobh about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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)

Actions

Also available in: Atom PDF