You are here

function PHPMailer::SetWordWrap in SMTP Authentication Support 5

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

Set the body wrapping. @access private

Return value

void

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

File

./smtp.module, line 1198
Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.

Class

PHPMailer
PHPMailer - PHP email transport class @package PHPMailer @author Brent R. Matzelle @copyright 2001 - 2003 Brent R. Matzelle

Code

function SetWordWrap() {
  if ($this->WordWrap < 1) {
    return;
  }
  switch ($this->message_type) {
    case "alt":

    // fall through
    case "alt_attachments":
      $this->AltBody = $this
        ->WrapText($this->AltBody, $this->WordWrap);
      break;
    case "pre":
      break;
    default:
      $this->Body = $this
        ->WrapText($this->Body, $this->WordWrap);
      break;
  }
}