Email in HTML fix separator for outlook

This commit is contained in:
sparkyx 2025-09-13 14:30:40 +02:00
parent c6b6976040
commit b0f09b5d06

View file

@ -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 ;