src/Mailer/Email.php
public function addBlobAttachment($content, $filename, $mimeType = null, $fileInfo = []) {
		if ($mimeType === null) {
			$ext = pathinfo($filename, PATHINFO_EXTENSION);
			$mimeType = $this->_getMimeByExtension($ext);
		}
		$fileInfo['data'] = $content;
		$fileInfo['mimetype'] = $mimeType;
		$file = [$filename => $fileInfo];
		return $this->addAttachments($file);
	}
public function addBlobAttachment($content, $filename, $mimeType = null, $fileInfo = []) {
		if ($mimeType === null) {
			$ext = pathinfo($filename, PATHINFO_EXTENSION);
			$mimeType = $this->_getMimeByExtension($ext);
		}
		$fileInfo['data'] = $content;
		$fileInfo['mimetype'] = $mimeType;
		$file = [$filename => $fileInfo];
		return $this->addAttachments($file);
	}
public function addBlobAttachment ( $ content , $ filename , $ mimeType = null , $ fileInfo = [ ] ) { if ( $ mimeType === null ) { $ ext = pathinfo ( $ filename , PATHINFO_EXTENSION ) ; $ mimeType = $ this -> _getMimeByExtension ( $ ext ) ; } $ fileInfo [ 'data' ] = $ content ; $ fileInfo [ 'mimetype' ] = $ mimeType ; $ file = [ $ filename => $ fileInfo ] ; return $ this -> addAttachments ( $ file ) ; }
Add an attachment as blob

@param string $content Blob data
@param string $filename to attach it
@param string|null $mimeType (leave it empty to get mimetype from $filename)
@param array $fileInfo
@return $this
Add an attachment as blob