wppaste
WordPress

PHPMailer::createBody(): string

Source
wp-includes/PHPMailer/PHPMailer.php:3042
Assemble the message body.

Description

Returns an empty string on failure.

Compatibility

WordPress
core
PHP
7.4–8.6-dev
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3), and compiles on PHP 7.4 through 8.6-dev.

Return value

string
The assembled message body

Performance profile

How much work a call to PHPMailer::createBody() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Heavy

Reads or writes the filesystem via file_put_contents().

Scaling
Scales with input

The body loops, so the work grows with how much data it finds.

Instructions
51–261

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 799.

Plugin surface
None

Nothing here hands control to plugin code.

Called by
0

Nothing in core calls this; the cost is only what you spend yourself.

What it touches

  • filesystemfilesystem accessfile_put_contents()called directly

What one call costs · 132 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost PHPMailer::createBody() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
$bodyEncoding !== false51–67->setBoundaries(), ->setWordWrap(), ->encodeString(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax()57–58->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->encodeString(), ->isError()
$bodyEncoding !== false58–74->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->encodeString(), ->isError()
$bodyEncoding !== false && ->isError()60–75->setBoundaries(), ->setWordWrap(), ->encodeString(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && ->isError()66->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->encodeString(), ->isError(), ::lang()
$bodyEncoding !== false && ->isError()67–82->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->encodeString(), ->isError(), ::lang()
$bodyEncoding !== false69–74->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax()75–79->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError()
$bodyEncoding !== false76–81->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError()
$bodyEncoding !== false && ->isError()78–82->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && ->isError()84–86->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && ->isError()85–89->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), ::lang()
120 further outcomes, up to 261 instructions
$bodyEncoding !== false && empty($value)91–100->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value)97–98->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false && empty($value)98–107->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false && empty($value) && ->isError()100–108->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value) && ->isError()106->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && empty($value) && ->isError()107–115->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false110–117->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError()
$bodyEncoding !== false && !->isError()115–132->setBoundaries(), ->setWordWrap(), ->encodeString(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax()116–117->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError()
$bodyEncoding !== false117–124->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError()
$bodyEncoding !== false && ->isError()119–125->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !empty($value)120–130->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()121–123->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->encodeString(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()122–139->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->encodeString(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && empty($value)125–138->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && ->isError()125->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !->isError()125–142->setBoundaries(), ->setWordWrap(), ->encodeString(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value)126–128->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false && ->isError()126–132->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !empty($value)127–137->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false && !empty($value) && ->isError()129–138->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && !empty($value)130–139->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false130–141->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value)131–132->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()131–133->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->encodeString(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && empty($value)132–145->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && !->isError()132–149->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->encodeString(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !->isError()133–139->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && empty($value) && ->isError()134–146->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && ->isError()135–136->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && !empty($value) && ->isError()136–145->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value)136–137->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax()136–137->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError()
$bodyEncoding !== false && !empty($value)137–146->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError()
$bodyEncoding !== false137–148->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError()
$bodyEncoding !== false && !empty($value) && ->isError()139–147->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && ->isError()139–149->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()139–145->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value) && ->isError()140->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !->isError()140–146->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && empty($value) && ->isError()141–153->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !->isError()143–149->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && ->isError()145->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && ->isError()145->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && !empty($value) && ->isError()146–154->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && ->isError()146–156->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()149–155->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !->isError()150–156->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value)152–166->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && empty($value) && !->isError()155–165->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value)158–160->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && !empty($value)159–173->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && !empty($value) && ->isError()161–174->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value) && !->isError()161–163->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value)162–175->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && empty($value) && !->isError()162–172->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false164–179->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && empty($value) && !->isError()165–175->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && ->isError()167–168->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !empty($value) && ->isError()168–181->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value)168–169->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && !empty($value)169–182->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax()170–171->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && !empty($value) && ->isError()171–183->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false171–186->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value) && !->isError()171–173->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && empty($value) && !->isError()172–182->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && ->isError()173–187->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !->isError()174–182->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && ->isError()177->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && !empty($value) && ->isError()178–190->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && ->isError()179->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && ->isError()180–194->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), ::lang()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()180–182->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()181–189->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()184–192->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()184–195->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && empty($value) && !->isError()189–203->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()190–192->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()190–193->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()191–199->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()191–202->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value) && !->isError()194–205->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()194–204->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()194–206->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value) && !->isError()195–197->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && empty($value) && !->isError()196–210->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && empty($value) && !->isError()199–213->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()200–203->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()200–202->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()200–202->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value) && !->isError()201–212->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()201–211->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()201–213->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value) && !->isError()204–214->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !->isError()204–216->setBoundaries(), ->setWordWrap(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && empty($value) && !->isError()205–207->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && empty($value) && !->isError()206–220->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()210–212->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()210–212->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()211–221->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !->isError()211–223->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()216–231->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()222–225->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value) && !->isError()223–238->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value) && !->isError()226–241->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()226–240->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()228–244->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()232–235->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()232–234->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value) && !->isError()233–248->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()233–247->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()234–236->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !->isError()235–251->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), unlink(), ::lang(), openssl_error_string(), openssl_pkcs7_sign()
$bodyEncoding !== false && !empty($value) && !->isError()236–250->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !->isError()238–254->setBoundaries(), ->setWordWrap(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !empty($value) && !->isError()242–244->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !empty($value) && !->isError()243–257->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->getBoundary(), ->encodeString(), stripos(), ->getBoundary(), ->encodeString(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && $altBodyEncoding !== false && !::hasLineLongerThanMax() && !->isError()244–246->setBoundaries(), ->setWordWrap(), ::hasLineLongerThanMax(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()
$bodyEncoding !== false && !->isError()245–261->setBoundaries(), ->setWordWrap(), ->getMailMIME(), ->textLine(), ->headerLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->textLine(), ->headerLine(), ->textLine(), ->textLine(), ->getBoundary(), ->encodeString(), ->attachAll(), ->endBoundary(), ->attachAll(), ->isError(), sys_get_temp_dir(), tempnam(), sys_get_temp_dir(), tempnam(), file_put_contents(), realpath(), realpath(), unlink(), file_get_contents(), unlink(), explode()

This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.

Across PHP versions

PHPCompiledExecutedBranchesNotes
8.6-dev79951–26132
8.579951–26132
8.479951–26132
8.379951–26132
8.279951–261321 more instruction than PHP 8.1
8.179851–26132
7.479851–26132

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Uses · 15

  • stripos()
  • \PHPMailer\PHPMailer\PHPMailer::setBoundaries()
  • \PHPMailer\PHPMailer\PHPMailer::setWordWrap()
  • \PHPMailer\PHPMailer\PHPMailer::has8bitChars()
  • static::hasLineLongerThanMax()
  • \PHPMailer\PHPMailer\PHPMailer::getMailMIME()
  • \PHPMailer\PHPMailer\PHPMailer::getBoundary()
  • \PHPMailer\PHPMailer\PHPMailer::encodeString()
  • \PHPMailer\PHPMailer\PHPMailer::attachAll()
  • \PHPMailer\PHPMailer\PHPMailer::textLine()
  • \PHPMailer\PHPMailer\PHPMailer::headerLine()
  • \PHPMailer\PHPMailer\PHPMailer::endBoundary()
Show all 15
  • \PHPMailer\PHPMailer\PHPMailer::isError()
  • \PHPMailer\PHPMailer\Exception::__construct()
  • \PHPMailer\PHPMailer\PHPMailer::lang()

Source code

    public function createBody()    {        $body = '';        //Create unique IDs and preset boundaries        $this->setBoundaries();         $this->setWordWrap();         $bodyEncoding = $this->Encoding;        $bodyCharSet = $this->CharSet;        //Can we do a 7-bit downgrade?        if ($this->UseSMTPUTF8) {            $bodyEncoding = static::ENCODING_8BIT;        } elseif (static::ENCODING_8BIT === $bodyEncoding && !$this->has8bitChars($this->Body)) {            $bodyEncoding = static::ENCODING_7BIT;            //All ISO 8859, Windows codepage and UTF-8 charsets are ascii compatible up to 7-bit            $bodyCharSet = static::CHARSET_ASCII;        }        //If lines are too long, and we're not already using an encoding that will shorten them,        //change to quoted-printable transfer encoding for the body part only        if (static::ENCODING_BASE64 !== $this->Encoding && static::hasLineLongerThanMax($this->Body)) {            $bodyEncoding = static::ENCODING_QUOTED_PRINTABLE;        }         $altBodyEncoding = $this->Encoding;        $altBodyCharSet = $this->CharSet;        //Can we do a 7-bit downgrade?        if (static::ENCODING_8BIT === $altBodyEncoding && !$this->has8bitChars($this->AltBody)) {            $altBodyEncoding = static::ENCODING_7BIT;            //All ISO 8859, Windows codepage and UTF-8 charsets are ascii compatible up to 7-bit            $altBodyCharSet = static::CHARSET_ASCII;        }        //If lines are too long, and we're not already using an encoding that will shorten them,        //change to quoted-printable transfer encoding for the alt body part only        if (static::ENCODING_BASE64 !== $altBodyEncoding && static::hasLineLongerThanMax($this->AltBody)) {            $altBodyEncoding = static::ENCODING_QUOTED_PRINTABLE;        }         if ($this->sign_key_file) {            $this->Encoding = $bodyEncoding;            $body .= $this->getMailMIME() . static::$LE;        }         //Use this as a preamble in all multipart message types        $mimepre = '';        switch ($this->message_type) {            case 'inline':                $body .= $mimepre;                $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);                $body .= $this->encodeString($this->Body, $bodyEncoding);                $body .= static::$LE;                $body .= $this->attachAll('inline', $this->boundary[1]);                break;            case 'attach':                $body .= $mimepre;                $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);                $body .= $this->encodeString($this->Body, $bodyEncoding);                $body .= static::$LE;                $body .= $this->attachAll('attachment', $this->boundary[1]);                break;            case 'inline_attach':                $body .= $mimepre;                $body .= $this->textLine('--' . $this->boundary[1]);                $body .= $this->headerLine('Content-Type', static::CONTENT_TYPE_MULTIPART_RELATED . ';');                $body .= $this->textLine(' boundary="' . $this->boundary[2] . '";');                $body .= $this->textLine(' type="' . static::CONTENT_TYPE_TEXT_HTML . '"');                $body .= static::$LE;                $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, '', $bodyEncoding);                $body .= $this->encodeString($this->Body, $bodyEncoding);                $body .= static::$LE;                $body .= $this->attachAll('inline', $this->boundary[2]);                $body .= static::$LE;                $body .= $this->attachAll('attachment', $this->boundary[1]);                break;            case 'alt':                $body .= $mimepre;                $body .= $this->getBoundary(                    $this->boundary[1],                    $altBodyCharSet,                    static::CONTENT_TYPE_PLAINTEXT,

Changelog

Unchanged from 6.7.10 through 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.7 tag, from src/wp-includes/PHPMailer/PHPMailer.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.