From b0f09b5d063769cbd7d188017f57febdb5e4ef53 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 13 Sep 2025 14:30:40 +0200 Subject: [PATCH] Email in HTML fix separator for outlook --- include/lib/sendmail_core.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/lib/sendmail_core.class.php b/include/lib/sendmail_core.class.php index 8c01b4a89..6b1fc0180 100644 --- a/include/lib/sendmail_core.class.php +++ b/include/lib/sendmail_core.class.php @@ -168,12 +168,13 @@ class Sendmail_Core $this->content .= "Content-Transfer-Encoding: 8bit" . $eol.$eol ; $this->content .= $this->message . $eol ; } elseif ($this->format == 'HTML') { + $separator_second=md5(rand()); $this->header .= "Content-Type: multipart/mixed; boundary=\"" . $separator . "\"" .$eol ; // message PLAIN $this->content .= "--" . $separator . $eol; - $separator_second=md5(rand()); $this->content .= "Content-Type: multipart/alternative; boundary=\"" . $separator_second . "\"".$eol ; + $this->content.= "--$separator_second".$eol; $this->content .= "Content-Type: text/plain; charset=UTF-8; format=flowed".$eol; $this->content .= "Content-Transfer-Encoding: 8bit" . $eol.$eol ; $this->content .= strip_tags($this->message) . $eol ;