PHPMailer\PHPMailer\PHPMailer::attachmentExists PHP 메소드

attachmentExists() 공개 메소드

Check if an attachment (non-inline) is present.
public attachmentExists ( ) : boolean
리턴 boolean
    public function attachmentExists()
    {
        foreach ($this->attachment as $attachment) {
            if ($attachment[6] == 'attachment') {
                return true;
            }
        }
        return false;
    }