Changeset 781f341b in github


Ignore:
Timestamp:
Dec 16, 2008 7:37:05 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
dea237e
Parents:
a2efac5
Message:

#1485607: fix charset setting for attachments when sending the message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/lib/Mail/mimePart.php

    r68af648 r781f341b  
    186186        if (isset($contentType['type'])) { 
    187187            $headers['Content-Type'] = $contentType['type']; 
     188            if (isset($contentType['charset'])) { 
     189                $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\""; 
     190            } 
    188191            if (isset($contentType['name'])) { 
    189192                $headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF; 
     
    193196                        isset($contentType['language']) ? $contentType['language'] : NULL, 
    194197                        isset($params['name-encoding']) ?  $params['name-encoding'] : NULL); 
    195             } elseif (isset($contentType['charset'])) { 
    196                 $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\""; 
    197198            } 
    198199        } 
Note: See TracChangeset for help on using the changeset viewer.