diff --git a/src/Mailer/Email.php b/src/Mailer/Email.php index 19cfde97a1d..c7d7a8ac731 100644 --- a/src/Mailer/Email.php +++ b/src/Mailer/Email.php @@ -2432,7 +2432,7 @@ protected function _wrap($message, $wrapLength = Email::LINE_LENGTH_MUST) if (!preg_match('/<[a-z]+.*>/i', $line)) { $formatted = array_merge( $formatted, - explode("\n", wordwrap($line, $wrapLength, "\n", $cut)) + explode("\n", Text::wordWrap($line, $wrapLength, "\n", $cut)) ); continue; } @@ -2453,7 +2453,7 @@ protected function _wrap($message, $wrapLength = Email::LINE_LENGTH_MUST) if ($tmpLineLength > 0) { $formatted = array_merge( $formatted, - explode("\n", wordwrap(trim($tmpLine), $wrapLength, "\n", $cut)) + explode("\n", Text::wordWrap(trim($tmpLine), $wrapLength, "\n", $cut)) ); $tmpLine = ''; $tmpLineLength = 0;