protected function PHPMailer::cidExists

5.x PHPMailer.php protected PHPMailer::cidExists($cid)

Check if an embedded attachment is present with this cid.

Parameters

string $cid:

Return value

bool

1 call to PHPMailer::cidExists()
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…

File

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

Class

PHPMailer
PHPMailer - PHP email creation and transport class.

Namespace

PHPMailer\PHPMailer

Code

protected function cidExists($cid) 
 {
  foreach ($this->attachment as $attachment) {
    if ('inline' == $attachment [6] and $cid == $attachment [7]) {
      return true;
    }
  }

  return false;
}