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