mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
FIX better text content for multipart email
This commit is contained in:
@@ -1062,8 +1062,8 @@ class CMailFile
|
|||||||
if ($this->msgishtml)
|
if ($this->msgishtml)
|
||||||
{
|
{
|
||||||
// Similar code to forge a text from html is also in CMailFile.class.php
|
// Similar code to forge a text from html is also in CMailFile.class.php
|
||||||
$strContentAltText = preg_replace("/<br\s*[^>]*>/"," ", $strContentAltText);
|
$strContentAltText = preg_replace("/<br\s*[^>]*>/"," ", $strContent);
|
||||||
$strContentAltText = html_entity_decode(strip_tags($strContent));
|
$strContentAltText = html_entity_decode(strip_tags($strContentAltText));
|
||||||
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, empty($conf->global->MAIN_FIX_FOR_BUGGED_MTA)?"\r\n":"\n"));
|
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, empty($conf->global->MAIN_FIX_FOR_BUGGED_MTA)?"\r\n":"\n"));
|
||||||
|
|
||||||
// Check if html header already in message, if not complete the message
|
// Check if html header already in message, if not complete the message
|
||||||
|
|||||||
@@ -1361,8 +1361,8 @@ class SMTPs
|
|||||||
if ($strType == 'html')
|
if ($strType == 'html')
|
||||||
{
|
{
|
||||||
// Similar code to forge a text from html is also in CMailFile.class.php
|
// Similar code to forge a text from html is also in CMailFile.class.php
|
||||||
$strContentAltText = preg_replace("/<br\s*[^>]*>/"," ", $strContentAltText);
|
$strContentAltText = preg_replace("/<br\s*[^>]*>/"," ", $strContent);
|
||||||
$strContentAltText = html_entity_decode(strip_tags($strContent));
|
$strContentAltText = html_entity_decode(strip_tags($strContentAltText));
|
||||||
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, "\r\n"));
|
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, "\r\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user