PHPMailer\PHPMailer

PHPMailer::cidExists()protectedWP 1.0

Check if an embedded attachment is present with this cid.

Метод класса: PHPMailer{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->cidExists( $cid );
$cid(строка) (обязательный)
-

Код PHPMailer::cidExists() WP 6.5.2

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

    return false;
}