private function PHPMailer::GetBoundary in SMTP Authentication Support 7
Same name and namespace in other branches
- 5 smtp.module \PHPMailer::GetBoundary()
- 7.2 smtp.phpmailer.inc \PHPMailer::GetBoundary()
Returns the start of a message boundary. @access private
1 call to PHPMailer::GetBoundary()
- PHPMailer::CreateBody in ./
smtp.phpmailer.inc - Assembles the message body. Returns an empty string on failure. @access public
File
- ./
smtp.phpmailer.inc, line 1239 - 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 GetBoundary($boundary, $charSet, $contentType, $encoding) {
$result = '';
if ($charSet == '') {
$charSet = $this->CharSet;
}
if ($contentType == '') {
$contentType = $this->ContentType;
}
if ($encoding == '') {
$encoding = $this->Encoding;
}
$result .= $this
->TextLine('--' . $boundary);
$result .= sprintf("Content-Type: %s; charset = \"%s\"", $contentType, $charSet);
$result .= $this->LE;
$result .= $this
->HeaderLine('Content-Transfer-Encoding', $encoding);
$result .= $this->LE;
return $result;
}