You are here

public function PHPMailer::SetWordWrap in SMTP Authentication Support 7

Same name and namespace in other branches
  1. 5 smtp.module \PHPMailer::SetWordWrap()
  2. 7.2 smtp.phpmailer.inc \PHPMailer::SetWordWrap()

Set the body wrapping. @access public

Return value

void

1 call to PHPMailer::SetWordWrap()
PHPMailer::CreateBody in ./smtp.phpmailer.inc
Assembles the message body. Returns an empty string on failure. @access public

File

./smtp.phpmailer.inc, line 1016
The mail handler class in smtp module, based on code of the phpmailer library, customized and relicensed to GPLv2.

Class

PHPMailer
PHPMailer - PHP email transport class NOTE: Requires PHP version 5 or later @package PHPMailer @author Andy Prevost @author Marcus Bointon @copyright 2004 - 2009 Andy Prevost

Code

public function SetWordWrap() {
  if ($this->WordWrap < 1) {
    return;
  }
  switch ($this->message_type) {
    case 'alt':
    case 'alt_attachments':
      $this->AltBody = $this
        ->WrapText($this->AltBody, $this->WordWrap);
      break;
    default:
      $this->Body = $this
        ->WrapText($this->Body, $this->WordWrap);
      break;
  }
}