public function PHPMailer::inlineImageExists

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

Check if an inline attachment is present.

Return value

bool

1 call to PHPMailer::inlineImageExists()
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 3555

Class

PHPMailer
PHPMailer - PHP email creation and transport class.

Namespace

PHPMailer\PHPMailer

Code

public function inlineImageExists() 
 {
  foreach ($this->attachment as $attachment) {
    if ('inline' == $attachment [6]) {
      return true;
    }
  }

  return false;
}