public function addAttachmentPart($resource, $mimeType, $filename = null, $disposition = 'attachment')
    {
        $this->messageHelperService
            ->getMultipartHelper()
            ->createAndAddPartForAttachment($this, $resource, $mimeType, $disposition, $filename);
    }
public function addAttachmentPart($resource, $mimeType, $filename = null, $disposition = 'attachment')
    {
        $this->messageHelperService
            ->getMultipartHelper()
            ->createAndAddPartForAttachment($this, $resource, $mimeType, $disposition, $filename);
    }
public function addAttachmentPart ( $ resource , $ mimeType , $ filename = null , $ disposition = 'attachment' ) { $ this -> messageHelperService -> getMultipartHelper ( ) -> createAndAddPartForAttachment ( $ this , $ resource , $ mimeType , $ disposition , $ filename ) ; }
Adds an attachment part for the passed raw data string or handle and
given parameters.

@param string|resource|StreamInterface $resource
@param string $mimeType
@param string $filename
@param string $disposition
Adds an attachment part for the passed raw data string or handle and given parameters .