Skip to content
This repository
Browse code

BUGFIX: Send plaintext email as text/plain if there are no attachment…

…s. (#4603)
  • Loading branch information...
commit 364d413c66cf37e6ed58a7485cf84402b94c7ac7 1 parent cc7a012
Sam Minnée authored April 18, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  email/Mailer.php
2  email/Mailer.php
@@ -185,7 +185,7 @@ function plaintextEmail($to, $from, $subject, $plainContent, $attachedFiles, $cu
185 185
 	$plainContent = ($plainEncoding == "base64") ? chunk_split(base64_encode($plainContent),60) : QuotedPrintable_encode($plainContent);
186 186
 
187 187
 	// Messages with attachments are handled differently
188  
-	if(is_array($attachedFiles)) {
  188
+	if($attachedFiles) {
189 189
 		// The first part is the message itself
190 190
 		$fullMessage = processHeaders($headers, $plainContent);
191 191
 		$messageParts = array($fullMessage);

0 notes on commit 364d413

Please sign in to comment.
Something went wrong with that request. Please try again.