public function afterLayout($layoutFile) {
		$content = $this->_View->Blocks->get('content');
		$content = $this->_prepareHtmlContent($content);

		if (!isset($this->InlineCss)) {
			$options = [
				'engine' => InlineCssLib::ENGINE_CSS_TO_INLINE,
				'xhtmlOutput' => true,
			];
			$this->InlineCss = new InlineCssLib($options);
		}
		$content = trim($this->InlineCss->process($content));

		$this->_View->Blocks->set('content', $content);
	}
public function afterLayout($layoutFile) {
		$content = $this->_View->Blocks->get('content');
		$content = $this->_prepareHtmlContent($content);

		if (!isset($this->InlineCss)) {
			$options = [
				'engine' => InlineCssLib::ENGINE_CSS_TO_INLINE,
				'xhtmlOutput' => true,
			];
			$this->InlineCss = new InlineCssLib($options);
		}
		$content = trim($this->InlineCss->process($content));

		$this->_View->Blocks->set('content', $content);
	}
public function afterLayout ( $ layoutFile ) { $ content = $ this -> _View -> Blocks -> get ( 'content' ) ; $ content = $ this -> _prepareHtmlContent ( $ content ) ; if ( ! isset ( $ this -> InlineCss ) ) { $ options = [ 'engine' => InlineCssLib :: ENGINE_CSS_TO_INLINE , 'xhtmlOutput' => true , ] ; $ this -> InlineCss = new InlineCssLib ( $ options ) ; } $ content = trim ( $ this -> InlineCss -> process ( $ content ) ) ; $ this -> _View -> Blocks -> set ( 'content' , $ content ) ; }
Process Email HTML content after rendering of the email

@param string $layoutFile The layout file that was rendered.
@return void
Process Email HTML content after rendering of the email