FIX better text content for multipart email

This commit is contained in:
Laurent Destailleur 2018-06-18 23:18:22 +02:00
parent da16805b00
commit c3f64ed36e
3 changed files with 5 additions and 1 deletions

View File

@ -1061,7 +1061,9 @@ class CMailFile
$strContentAltText = '';
if ($this->msgishtml)
{
// Similar code to forge a text from html is also in CMailFile.class.php
$strContentAltText = html_entity_decode(strip_tags($strContent));
$strContentAltText = preg_replace("/<br\s*[^>]*>/"," ", $strContentAltText);
$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

View File

@ -1360,7 +1360,9 @@ class SMTPs
$strContentAltText = '';
if ($strType == 'html')
{
// Similar code to forge a text from html is also in CMailFile.class.php
$strContentAltText = html_entity_decode(strip_tags($strContent));
$strContentAltText = preg_replace("/<br\s*[^>]*>/"," ", $strContentAltText);
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, "\r\n"));
}

View File

@ -218,7 +218,7 @@ FileIsTooBig=Files is too big
PleaseBePatient=Please be patient...
NewPassword=New password
ResetPassword=Reset password
RequestToResetPasswordReceived=A request to change your password has been received
RequestToResetPasswordReceived=A request to change your password has been received.
NewKeyIs=This is your new keys to login
NewKeyWillBe=Your new key to login to software will be
ClickHereToGoTo=Click here to go to %s