Skip to content

Commit

Permalink
FIX better text content for multipart email
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 18, 2018
1 parent c3f64ed commit f9f7d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/class/CMailFile.class.php
Expand Up @@ -1062,8 +1062,8 @@ function write_body($msgtext)
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 = html_entity_decode(strip_tags($strContent));
$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
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/class/smtps.class.php
Expand Up @@ -1361,8 +1361,8 @@ function setBodyContent($strContent, $strType = 'plain')
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 = html_entity_decode(strip_tags($strContent));
$strContentAltText = rtrim(wordwrap($strContentAltText, 75, "\r\n"));
}

Expand Down

0 comments on commit f9f7d36

Please sign in to comment.