wrapText() public method

For use with mailers that do not automatically perform wrapping and for quoted-printable encoded messages. Original written by philippe.
public wrapText ( string $message, integer $length, boolean $qp_mode = false ) : string
$message string The message to wrap
$length integer The line length to wrap to
$qp_mode boolean Whether to run in Quoted-Printable mode
return string
Example #1
0
 /**
  * Tests this denial of service attack:
  * @link https://sourceforge.net/p/phpmailer/bugs/383/
  * According to the ticket, this should get stuck in a loop, though I can't make it happen.
  */
 public function testDenialOfServiceAttack2()
 {
     //Encoding name longer than 68 chars
     $this->Mail->Encoding = '1234567890123456789012345678901234567890123456789012345678901234567890';
     //Call wrapText with a zero length value
     $this->Mail->wrapText(str_repeat('This should no longer cause a denial of service. ', 30), 0);
 }