PHPMailer\PHPMailer
PHPMailer::cidExists
Check if an embedded attachment is present with this cid.
Метод класса: PHPMailer{}
Хуков нет.
Возвращает
true|false.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->cidExists( $cid );
- $cid(строка) (обязательный)
- .
Код PHPMailer::cidExists() PHPMailer::cidExists WP 6.9
protected function cidExists($cid)
{
foreach ($this->attachment as $attachment) {
if ('inline' === $attachment[6] && $cid === $attachment[7]) {
return true;
}
}
return false;
}