PHPMailer\PHPMailer
PHPMailer::attachmentExists
Check if an attachment (non-inline) is present.
Method of the class: PHPMailer{}
No Hooks.
Returns
true|false.
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->attachmentExists();
PHPMailer::attachmentExists() PHPMailer::attachmentExists code WP 7.0
public function attachmentExists()
{
foreach ($this->attachment as $attachment) {
if ('attachment' === $attachment[6]) {
return true;
}
}
return false;
}