From 89da21827ff7318e2e8040fa60c47a68dcbc7895 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 15 Apr 2017 13:18:38 +0200 Subject: [PATCH] Recover : cannot send mail without attach cause 'malformed lines' --- include/lib/class_sendmail.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/lib/class_sendmail.php b/include/lib/class_sendmail.php index 53b849d7f..ad2d5168a 100644 --- a/include/lib/class_sendmail.php +++ b/include/lib/class_sendmail.php @@ -144,6 +144,8 @@ class Sendmail $this->content.=$eol; $this->content .= $content . $eol ; } + if ( count ($this->afile) == 0 ) $this->content.=$eol; + $this->content .= "--" . $separator . "--"; } /**