diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index c47f3d36a8d..ac1d789e580 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -372,6 +372,11 @@ if ($isHtml) { $plainTextPart = rcube_mime::wordwrap($h2t->get_text(), $LINE_LENGTH, "\r\n", false, $message_charset); $plainTextPart = wordwrap($plainTextPart, 998, "\r\n", true); + // completely blank text part confuses some mail clients + if ($plainTextPart == '') { + $plainTextPart = "\r\n"; + } + // make sure all line endings are CRLF (#1486712) $plainTextPart = preg_replace('/\r?\n/', "\r\n", $plainTextPart);