PHPMailer\PHPMailer

PHPMailer::inlineImageExists()publicWP 1.0

Check if an inline attachment is present.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

true|false.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->inlineImageExists();

Code of PHPMailer::inlineImageExists() WP 6.0

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

    return false;
}