You are here

private function PHPMailer::FixEOL in SMTP Authentication Support 7.2

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

Changes every end of line from CR or LF to CRLF. @access private

Return value

string

2 calls to PHPMailer::FixEOL()
PHPMailer::EncodeString in ./smtp.phpmailer.inc
Encodes string to requested format. Returns an empty string on failure.
PHPMailer::WrapText in ./smtp.phpmailer.inc
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. Original written by philippe.

File

./smtp.phpmailer.inc, line 1975
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

private function FixEOL($str) {
  $str = str_replace("\r\n", "\n", $str);
  $str = str_replace("\r", "\n", $str);
  $str = str_replace("\n", $this->LE, $str);
  return $str;
}