PHPMailer\PHPMailer
PHPMailer::cidExists()
Check if an embedded attachment is present with this cid.
Method of the class: PHPMailer{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->cidExists( $cid );
- $cid(string) (required)
- -
PHPMailer::cidExists() PHPMailer::cidExists code WP 6.5.2
protected function cidExists($cid) { foreach ($this->attachment as $attachment) { if ('inline' === $attachment[6] && $cid === $attachment[7]) { return true; } } return false; }