mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
mailsend bugfix UTF-8
This commit is contained in:
parent
2dcc5b664e
commit
2b29457763
@ -25530,31 +25530,31 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p
|
|||||||
{
|
{
|
||||||
$signaturtext = $this->Signatur($from);
|
$signaturtext = $this->Signatur($from);
|
||||||
if($this->isHTML($signaturtext))
|
if($this->isHTML($signaturtext))
|
||||||
$body = utf8_decode(str_replace('\r\n',"\n",$text))."<br>".$signaturtext;
|
$body = str_replace('\r\n',"\n",$text)."<br>".$signaturtext;
|
||||||
else
|
else
|
||||||
$body = utf8_decode(str_replace('\r\n',"\n",$text))."<br>".nl2br($signaturtext);
|
$body = str_replace('\r\n',"\n",$text)."<br>".nl2br($signaturtext);
|
||||||
}else{
|
}else{
|
||||||
if($projekt > 0 && $this->Projektdaten($projekt,"absendesignatur")!=""){
|
if($projekt > 0 && $this->Projektdaten($projekt,"absendesignatur")!=""){
|
||||||
$signaturtext = $this->Projektdaten($projekt,"absendesignatur");
|
$signaturtext = $this->Projektdaten($projekt,"absendesignatur");
|
||||||
if($this->isHTML($signaturtext))
|
if($this->isHTML($signaturtext))
|
||||||
$body = utf8_decode(str_replace('\r\n',"\n",$text))."<br><br>".$signaturtext;
|
$body = str_replace('\r\n',"\n",$text)."<br><br>".$signaturtext;
|
||||||
else
|
else
|
||||||
$body = utf8_decode(str_replace('\r\n',"\n",$text))."<br><br>".$this->ReadyForPDF(nl2br($signaturtext));
|
$body = str_replace('\r\n',"\n",$text)."<br><br>".$this->ReadyForPDF(nl2br($signaturtext));
|
||||||
}else{
|
}else{
|
||||||
if(strlen(trim($this->Signatur($from))) > 0 && $eigenesignatur == 0){
|
if(strlen(trim($this->Signatur($from))) > 0 && $eigenesignatur == 0){
|
||||||
$signaturtext = $this->Signatur($from);
|
$signaturtext = $this->Signatur($from);
|
||||||
if($this->isHTML($signaturtext))
|
if($this->isHTML($signaturtext))
|
||||||
$body = str_replace('\r\n',"\n",$text)."<br>".$signaturtext;
|
$body = str_replace('\r\n',"\n",$text)."<br>".$signaturtext;
|
||||||
else
|
else
|
||||||
$body = utf8_decode(str_replace('\r\n',"\n",$text))."<br>".nl2br($signaturtext);
|
$body = str_replace('\r\n',"\n",$text)."<br>".nl2br($signaturtext);
|
||||||
}else{
|
}else{
|
||||||
$body = utf8_decode(str_replace('\r\n',"\n",$text));
|
$body = str_replace('\r\n',"\n",$text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$body = utf8_decode(str_replace('\r\n',"\n",$text));
|
$body = str_replace('\r\n',"\n",$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user