protected function getName()
    {
        // Check for different types of inline attachments.
        if ($this->_incomingObject->structure->ifdparameters) {
            foreach ($this->_incomingObject->structure->dparameters as $param) {
                if (strtolower($param->attribute) === 'filename') {
                    $this->name = $param->value;
                    break;
                }
            }
        } elseif ($this->_incomingObject->structure->ifparameters) {
            foreach ($this->_incomingObject->structure->parameters as $param) {
                if (strtolower($param->attribute) === 'name') {
                    $this->name = $param->value;
                    break;
                }
            }
        }
    }
protected function getName()
    {
        // Check for different types of inline attachments.
        if ($this->_incomingObject->structure->ifdparameters) {
            foreach ($this->_incomingObject->structure->dparameters as $param) {
                if (strtolower($param->attribute) === 'filename') {
                    $this->name = $param->value;
                    break;
                }
            }
        } elseif ($this->_incomingObject->structure->ifparameters) {
            foreach ($this->_incomingObject->structure->parameters as $param) {
                if (strtolower($param->attribute) === 'name') {
                    $this->name = $param->value;
                    break;
                }
            }
        }
    }
protected function getName ( ) { // Check for different types of inline attachments. if ( $ this -> _incomingObject -> structure -> ifdparameters ) { foreach ( $ this -> _incomingObject -> structure -> dparameters as $ param ) { if ( strtolower ( $ param -> attribute ) === 'filename' ) { $ this -> name = $ param -> value ; break ; } } } elseif ( $ this -> _incomingObject -> structure -> ifparameters ) { foreach ( $ this -> _incomingObject -> structure -> parameters as $ param ) { if ( strtolower ( $ param -> attribute ) === 'name' ) { $ this -> name = $ param -> value ; break ; } } } }
Returns the name of the attachment along with file extension.

@return string
Returns the name of the attachment along with file extension .