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 . "--"; } /**