public function PHPMailer::attachmentExists
Search API
5.x PHPMailer.php | public PHPMailer::attachmentExists() |
Check if an attachment (non-inline) is present.
Return value
bool
1 call to PHPMailer::attachmentExists()
- PHPMailer::setMessageType in inc/
PHPMailer/ src/ PHPMailer.php - Set the message type. PHPMailer only supports some preset message types, not arbitrary MIME structures.
File
- inc/
PHPMailer/ src/ PHPMailer.php, line 3571
Class
- PHPMailer
- PHPMailer - PHP email creation and transport class.
Namespace
PHPMailer\PHPMailerCode
public function attachmentExists()
{
foreach ($this->attachment as $attachment) {
if ('attachment' == $attachment [6]) {
return true;
}
}
return false;
}