I have created an HTML page with inline css and provided logo as inline css background
<div id="logo_image" style='background: url("<?=base_url();?>assets/images/img2.png") no-repeat scroll 0 0 / 150px auto rgba(0, 0, 0, 0);height: 73px;margin: -15px 0 0;position: absolute; width: 160px;'></div>
I have also tried using
<img src="<?=base_url();?>assets/images/img2.png" style="float: left;margin-top: -11px;width: 100px;margin-left:10px;" />
The mail function used is as below
$this->email->clear();
$this->email->set_newline("\r\n");
$this->email->set_mailtype("html");
$this->email->from('example@gmail.com','example');
$this->email->to($user['email']);
$this->email->subject('Thank You');
$this->email->message($this->load->view('emails/register', $name, TRUE));
$name
contains some variables to be displayed in the template register.php
Everything works well except for logo not being displayed
P.S. : i am working on localhost
.