From 2b29457763924574055b822efdf80aed9b2836f0 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Tue, 30 Jan 2024 11:13:07 +0100 Subject: [PATCH] mailsend bugfix UTF-8 --- www/lib/class.erpapi.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/www/lib/class.erpapi.php b/www/lib/class.erpapi.php index e73f9123..d28ffd70 100644 --- a/www/lib/class.erpapi.php +++ b/www/lib/class.erpapi.php @@ -25530,31 +25530,31 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p { $signaturtext = $this->Signatur($from); if($this->isHTML($signaturtext)) - $body = utf8_decode(str_replace('\r\n',"\n",$text))."
".$signaturtext; + $body = str_replace('\r\n',"\n",$text)."
".$signaturtext; else - $body = utf8_decode(str_replace('\r\n',"\n",$text))."
".nl2br($signaturtext); + $body = str_replace('\r\n',"\n",$text)."
".nl2br($signaturtext); }else{ if($projekt > 0 && $this->Projektdaten($projekt,"absendesignatur")!=""){ $signaturtext = $this->Projektdaten($projekt,"absendesignatur"); if($this->isHTML($signaturtext)) - $body = utf8_decode(str_replace('\r\n',"\n",$text))."

".$signaturtext; + $body = str_replace('\r\n',"\n",$text)."

".$signaturtext; else - $body = utf8_decode(str_replace('\r\n',"\n",$text))."

".$this->ReadyForPDF(nl2br($signaturtext)); + $body = str_replace('\r\n',"\n",$text)."

".$this->ReadyForPDF(nl2br($signaturtext)); }else{ if(strlen(trim($this->Signatur($from))) > 0 && $eigenesignatur == 0){ $signaturtext = $this->Signatur($from); if($this->isHTML($signaturtext)) $body = str_replace('\r\n',"\n",$text)."
".$signaturtext; else - $body = utf8_decode(str_replace('\r\n',"\n",$text))."
".nl2br($signaturtext); + $body = str_replace('\r\n',"\n",$text)."
".nl2br($signaturtext); }else{ - $body = utf8_decode(str_replace('\r\n',"\n",$text)); + $body = str_replace('\r\n',"\n",$text); } } } } else { - $body = utf8_decode(str_replace('\r\n',"\n",$text)); + $body = str_replace('\r\n',"\n",$text); } {