Msl/ResourceProxy/Resource/Email/Message.php
protected function getAttachmentFileName($originalAttachmentFileName, $baseOutputFolder)
    {
        // Getting extension from original file name
        $pathInfo = pathinfo($originalAttachmentFileName);
        $extension = '';
        if (isset($pathInfo['extension'])) {
            $extension = $pathInfo['extension'];
        }
        // Returning the attachment file name (output folder + message sub folder + message attachment sub folder
        // + original attachment file name + current object string representation + timestamp + extension)
        $attachmentFileName = sprintf(
            "%s%s%s_%s_%s.%s",
            $this->getAttachmentFileFolder($baseOutputFolder),
            DIRECTORY_SEPARATOR,
            $pathInfo['filename'],
            $this->toString(),
            time(),
            $extension
        );
        return rtrim($attachmentFileName, '.');
    }
protected function getAttachmentFileName($originalAttachmentFileName, $baseOutputFolder)
    {
        // Getting extension from original file name
        $pathInfo = pathinfo($originalAttachmentFileName);
        $extension = '';
        if (isset($pathInfo['extension'])) {
            $extension = $pathInfo['extension'];
        }
        // Returning the attachment file name (output folder + message sub folder + message attachment sub folder
        // + original attachment file name + current object string representation + timestamp + extension)
        $attachmentFileName = sprintf(
            "%s%s%s_%s_%s.%s",
            $this->getAttachmentFileFolder($baseOutputFolder),
            DIRECTORY_SEPARATOR,
            $pathInfo['filename'],
            $this->toString(),
            time(),
            $extension
        );
        return rtrim($attachmentFileName, '.');
    }
protected function getAttachmentFileName ( $ originalAttachmentFileName , $ baseOutputFolder ) { // Getting extension from original file name $ pathInfo = pathinfo ( $ originalAttachmentFileName ) ; $ extension = '' ; if ( isset ( $ pathInfo [ 'extension' ] ) ) { $ extension = $ pathInfo [ 'extension' ] ; } // Returning the attachment file name (output folder + message sub folder + message attachment sub folder // + original attachment file name + current object string representation + timestamp + extension) $ attachmentFileName = sprintf ( "%s%s%s_%s_%s.%s" , $ this -> getAttachmentFileFolder ( $ baseOutputFolder ) , DIRECTORY_SEPARATOR , $ pathInfo [ 'filename' ] , $ this -> toString ( ) , time ( ) , $ extension ) ; return rtrim ( $ attachmentFileName , '.' ) ; }
Returns the attachment file name as the concatenation of the given output folder + message sub folder + current object string representation + timestamp.

@param string $originalAttachmentFileName the base attachment file name
@param string $baseOutputFolder           the base output folder

@return string
Returns the attachment file name as the concatenation of the given output folder + message sub folder + current object string representation + timestamp .