Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…s. (#4603)
  • Loading branch information...
commit 364d413c66cf37e6ed58a7485cf84402b94c7ac7 1 parent cc7a012
@sminnee sminnee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  email/Mailer.php
View
2  email/Mailer.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.