Sending HTML Email results in Email displaying HTML source (Codeigniter Email Class)
Try adding the mailtype
to the config:
$config = Array( 'mailtype' => 'html', ...etc...);
Add these two lines after loading your codeigniter mail library
$this->email->set_header('MIME-Version', '1.0; charset=utf-8');$this->email->set_header('Content-type', 'text/html');
full configuration: https://stackoverflow.com/a/38740292/4376484