One way to send email from the html template is by using the IC parser class as follows:
1 ° Creating a view, where it will be the page to be sent by email:
<html>
<body>
<h3>{seu_nome}</h3>
<p>{mensagem}</p>
</body>
</html>
2 ° In the no controller method basically implemented as follows:
//Carregar biblioteca
$this->load->library('parser');
//Dados a serem renderizados na página de envio.
$data = array(
'seu_nome' => 'João da silva',
'mensagem' => 'Minha mensagem',
);
//Gerar página html e retorna-lá a variável $pagina
$pagina = $this->parser->parse('name_view_template', $data, true);
In reality it is not difficult, trying here I have
$message = $this->load->view('pasta/pagina', $data, true);
$this->email->message($message);
$this->email->send();
just pass the data to view
obg.