Permalink
Browse files

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

…s. (#4603)
  • Loading branch information...
1 parent cc7a012 commit 364d413c66cf37e6ed58a7485cf84402b94c7ac7 @sminnee sminnee committed Apr 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 email/Mailer.php
View
@@ -185,7 +185,7 @@ function plaintextEmail($to, $from, $subject, $plainContent, $attachedFiles, $cu
$plainContent = ($plainEncoding == "base64") ? chunk_split(base64_encode($plainContent),60) : QuotedPrintable_encode($plainContent);
// Messages with attachments are handled differently
- if(is_array($attachedFiles)) {
+ if($attachedFiles) {
// The first part is the message itself
$fullMessage = processHeaders($headers, $plainContent);
$messageParts = array($fullMessage);

0 comments on commit 364d413

Please sign in to comment.