alecpl
2008-12-16 781f341b21f1cc76f5a9cb7ef8df21d27d09800d
#1485607: fix charset setting for attachments when sending the message


1 files modified
5 ■■■■■ changed files
program/lib/Mail/mimePart.php 5 ●●●●● patch | view | raw | blame | history
program/lib/Mail/mimePart.php
@@ -185,6 +185,9 @@
    
        if (isset($contentType['type'])) {
            $headers['Content-Type'] = $contentType['type'];
        if (isset($contentType['charset'])) {
                $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\"";
            }
            if (isset($contentType['name'])) {
                $headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF;
                $headers['Content-Type'] .=
@@ -192,8 +195,6 @@
                        isset($contentType['charset']) ? $contentType['charset'] : 'US-ASCII', 
                        isset($contentType['language']) ? $contentType['language'] : NULL,
            isset($params['name-encoding']) ?  $params['name-encoding'] : NULL);
            } elseif (isset($contentType['charset'])) {
                $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\"";
            }
        }