public function loadAttachment($mail, $path)
    {
        $attachmentFolder = DIRECTORY_SEPARATOR . self::ATTACHMENT_PATH;

        $localFilePath = $this->getMailFolderPathById($mail->getId()) .
            $attachmentFolder . $path;

        return $this->restoreFile($localFilePath);
    }
public function loadAttachment($mail, $path)
    {
        $attachmentFolder = DIRECTORY_SEPARATOR . self::ATTACHMENT_PATH;

        $localFilePath = $this->getMailFolderPathById($mail->getId()) .
            $attachmentFolder . $path;

        return $this->restoreFile($localFilePath);
    }
public function loadAttachment ( $ mail , $ path ) { $ attachmentFolder = DIRECTORY_SEPARATOR . self :: ATTACHMENT_PATH ; $ localFilePath = $ this -> getMailFolderPathById ( $ mail -> getId ( ) ) . $ attachmentFolder . $ path ; return $ this -> restoreFile ( $ localFilePath ) ; }
Load binary data from storage provider

@param \Shockwavemk\Mail\Base\Model\Mail $mail
@param string $path
@return string
Load binary data from storage provider