$this->load->library('upload');
$this->load->library('email');
$this->email->set_newline("
");
$this->email->from($email);
$this->email->to($cus_email);
$this->email->subject($promo_name.' Offers');
$this->email->message($remarks.'/n <img src="<?php echo base_url();?>images/promotions/<? echo $image; ?>" style="float: left;margin-top: -11px;width: 100px;margin-left:10px;" />');
// $this->email->attach($img,'inline');
// $this->email->attach($img);
$this->email->send();
Tried including in message and also tried as inline attachment,but both didn't work. What i need is when an email is sent & on opening it,the image should be seen.
Currently I am receiving email as given below
$remarks.'/n <img src="<?php echo base_url();?>images/promotions/<? echo $image; ?>" style="float: left;margin-top: -11px;width: 100px;margin-left:10px;" />')