Tools\Mailer\Email::_isEmbeddedAttachment PHP Method

_isEmbeddedAttachment() protected method

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