alecpl
2008-12-16 781f341b21f1cc76f5a9cb7ef8df21d27d09800d
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']}\"";
            }
        }