PHPMailer\PHPMailer
PHPMailer::getBoundary()
Return the start of a message boundary.
Method of the class: PHPMailer{}
No Hooks.
Return
String
.
Usage
// protected - for code of main (parent) or child class $result = $this->getBoundary( $boundary, $charSet, $contentType, $encoding );
- $boundary(string) (required)
- -
- $charSet(string) (required)
- -
- $contentType(string) (required)
- -
- $encoding(string) (required)
- -
PHPMailer::getBoundary() PHPMailer::getBoundary code WP 6.4.1
protected 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 .= static::$LE; //RFC1341 part 5 says 7bit is assumed if not specified if (static::ENCODING_7BIT !== $encoding) { $result .= $this->headerLine('Content-Transfer-Encoding', $encoding); } $result .= static::$LE; return $result; }