FIX better text content for multipart email
This commit is contained in:
parent
da16805b00
commit
c3f64ed36e
@ -1061,7 +1061,9 @@ class CMailFile
|
|||||||
$strContentAltText = '';
|
$strContentAltText = '';
|
||||||
if ($this->msgishtml)
|
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 = 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"));
|
$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
|
||||||
|
|||||||
@ -1360,7 +1360,9 @@ class SMTPs
|
|||||||
$strContentAltText = '';
|
$strContentAltText = '';
|
||||||
if ($strType == 'html')
|
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 = html_entity_decode(strip_tags($strContent));
|
||||||
|
$strContentAltText = preg_replace("/<br\s*[^>]*>/"," ", $strContentAltText);
|
||||||
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, "\r\n"));
|
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, "\r\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -218,7 +218,7 @@ FileIsTooBig=Files is too big
|
|||||||
PleaseBePatient=Please be patient...
|
PleaseBePatient=Please be patient...
|
||||||
NewPassword=New password
|
NewPassword=New password
|
||||||
ResetPassword=Reset 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
|
NewKeyIs=This is your new keys to login
|
||||||
NewKeyWillBe=Your new key to login to software will be
|
NewKeyWillBe=Your new key to login to software will be
|
||||||
ClickHereToGoTo=Click here to go to %s
|
ClickHereToGoTo=Click here to go to %s
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user