@@ -433,20 +433,17 @@ private function create() {
433433 $ textonly = true ;
434434 } elseif ($ text == true && $ html == false && $ attach == true ) {
435435 // text and attachment
436- $ content_type = 'multipart/mixed; ' ;
437- $ content_type .= "\n" . ' boundary=" ' . $ this ->mime_boundary . '" ' ;
436+ $ content_type = 'multipart/mixed; boundary=" ' . $ this ->mime_boundary . '" ' ;
438437 } elseif ($ html == true && $ text == true && $ attach == false ) {
439438 // html only (or text too)
440- $ content_type = 'multipart/alternative; ' ;
441- $ content_type .= "\n" . ' boundary=" ' . $ this ->mime_boundary . '" ' ;
439+ $ content_type = 'multipart/alternative; boundary=" ' . $ this ->mime_boundary . '" ' ;
442440 } elseif ($ html == true && $ text == false && $ attach == false ) {
443441 // html only (or text too)
444442 $ content_type = 'text/html; charset=" ' . strtolower ($ this ->mail_charset ) . '" ' ;
445443 $ htmlonly = true ;
446444 } elseif ($ html == true && $ attach == true ) {
447445 // html and attachments
448- $ content_type = 'multipart/mixed; ' ;
449- $ content_type .= "\n" . ' boundary=" ' . $ this ->mime_boundary . '" ' ;
446+ $ content_type = 'multipart/mixed; boundary=" ' . $ this ->mime_boundary . '" ' ;
450447 }
451448
452449 $ this ->headers ['Content-Type ' ] = $ content_type ;
@@ -475,8 +472,7 @@ private function create() {
475472 if ($ attach ) {
476473 foreach ($ this ->attachments as $ att ) {
477474 $ this ->body .= "-- {$ this ->mime_boundary }\n" .
478- "Content-Type: " . $ att ['type ' ] . "; \n" .
479- " name= \"" . $ att ['filename ' ] . "\"\n" .
475+ "Content-Type: " . $ att ['type ' ] . "; name= \"" . $ att ['filename ' ] . "\"\n" .
480476 "Content-Transfer-Encoding: base64 \n" .
481477 "Content-Disposition: attachment; \n\n" .
482478 chunk_split (base64_encode ($ att ['content ' ])) . "\n\n" ;
0 commit comments