mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Send plaintext email as text/plain if there are no attachments. (#4603)
This commit is contained in:
parent
cc7a012139
commit
364d413c66
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user