public function PHPMailer::alternativeExists

5.x PHPMailer.php public PHPMailer::alternativeExists()

Check if this message has an alternative body set.

Return value

bool

3 calls to PHPMailer::alternativeExists()
PHPMailer::msgHTML in inc/PHPMailer/src/PHPMailer.php
Create a message body from an HTML string. Automatically inlines images and creates a plain-text version by converting the HTML, overwriting any existing values in Body and AltBody. Do not source $message content from user input! $basedir is prepended…
PHPMailer::preSend in inc/PHPMailer/src/PHPMailer.php
Prepare a message for sending.
PHPMailer::setMessageType in inc/PHPMailer/src/PHPMailer.php
Set the message type. PHPMailer only supports some preset message types, not arbitrary MIME structures.

File

inc/PHPMailer/src/PHPMailer.php, line 3587

Class

PHPMailer
PHPMailer - PHP email creation and transport class.

Namespace

PHPMailer\PHPMailer

Code

public function alternativeExists() 
 {
  return !empty($this->AltBody);
}