File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 608
608
MailComposer . prototype . _prepareTextPart = function ( bodyPart , callback ) {
609
609
610
610
if ( ! this . _body . text . match ( / [ \u0080 - \uFFFF ] / ) ) {
611
- bodyPart . headers [ "Content-Type" ] = "text/plain ; format=flowed" ;
611
+ bodyPart . headers [ "Content-Type" ] + = "; format=flowed" ;
612
612
bodyPart . flowed = true ;
613
613
} else {
614
+ bodyPart . headers [ "Content-Type" ] += "; charset=utf-8" ;
614
615
bodyPart . headers [ "Content-Transfer-Encoding" ] = "quoted-printable" ;
615
616
bodyPart . quotedPrintable = true ;
616
617
}
626
627
*/
627
628
MailComposer . prototype . _prepareHTMLPart = function ( bodyPart , callback ) {
628
629
if ( ! this . _body . html . match ( / [ \u0080 - \uFFFF ] / ) ) {
629
- bodyPart . headers [ "Content-Type" ] = "text/html ; format=flowed" ;
630
+ bodyPart . headers [ "Content-Type" ] + = "; format=flowed" ;
630
631
bodyPart . flowed = true ;
631
632
} else {
633
+ bodyPart . headers [ "Content-Type" ] += "; charset=utf-8" ;
632
634
bodyPart . headers [ "Content-Transfer-Encoding" ] = "quoted-printable" ;
633
635
bodyPart . quotedPrintable = true ;
634
636
}
You can’t perform that action at this time.
0 commit comments