Tools\Mailer\Email::_isEmbeddedBlobAttachment PHP Method

_isEmbeddedBlobAttachment() protected method

Allows multiple usage of the same embedded image (using the same cid)
protected _isEmbeddedBlobAttachment ( string $content, string $name ) : boolean | string
$content string
$name string
return boolean | string CID of the found file or false if no such attachment can be found
    protected function _isEmbeddedBlobAttachment($content, $name)
    {
        foreach ($this->_attachments as $filename => $fileInfo) {
            if ($filename !== $name) {
                continue;
            }
            return $fileInfo['contentId'];
        }
        return false;
    }