public function createMessageFromView($view, $params = [], $viewsDir = null)
    {
        $message = $this->createMessage();
        $message->content($this->renderView($view, $params, $viewsDir), $message::CONTENT_TYPE_HTML);

        return $message;
    }
public function createMessageFromView($view, $params = [], $viewsDir = null)
    {
        $message = $this->createMessage();
        $message->content($this->renderView($view, $params, $viewsDir), $message::CONTENT_TYPE_HTML);

        return $message;
    }
public function createMessageFromView ( $ view , $ params = [ ] , $ viewsDir = null ) { $ message = $ this -> createMessage ( ) ; $ message -> content ( $ this -> renderView ( $ view , $ params , $ viewsDir ) , $ message :: CONTENT_TYPE_HTML ) ; return $ message ; }
Create a new Message instance.
For the body of the message uses the result of render of view

Events:
- mailer:beforeCreateMessage
- mailer:afterCreateMessage

@param string $view
@param array $params optional
@param null|string $viewsDir optional

@return \Phalcon\Ext\Mailer\Message

@see \Phalcon\Ext\Mailer\Manager::createMessage()
Create a new Message instance . For the body of the message uses the result of render of view