public function embedData($data, $options=[]) {
		$image = \Swift_Image::newInstance($data);
		if(isset($options['filename']))
			$image->setFilename($options['filename']);
		if(isset($options['mime']))
			$image->setContentType($options['mime']);
		return $this->embed($image);
	}
public function embedData($data, $options=[]) {
		$image = \Swift_Image::newInstance($data);
		if(isset($options['filename']))
			$image->setFilename($options['filename']);
		if(isset($options['mime']))
			$image->setContentType($options['mime']);
		return $this->embed($image);
	}
public function embedData ( $ data , $ options = [ ] ) { $ image = \ Swift_Image :: newInstance ( $ data ) ; if ( isset ( $ options [ 'filename' ] ) ) $ image -> setFilename ( $ options [ 'filename' ] ) ; if ( isset ( $ options [ 'mime' ] ) ) $ image -> setContentType ( $ options [ 'mime' ] ) ; return $ this -> embed ( $ image ) ; }
Embed data as a file in the email.
@param  string $data
@param  array  $options
@return SwiftMessage $this
Embed data as a file in the email .