【发布时间】:2018-12-10 16:08:11
【问题描述】:
$this->load->library('upload');
$this->load->library('email');
$this->email->set_newline("\r\n");
$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();
尝试包含在消息中,也尝试作为内联附件,但两者都不起作用。我需要的是当发送电子邮件并打开它时,应该看到图像。
目前我收到如下电子邮件
$remarks.'/n <img src="<?php echo base_url();?>images/promotions/<? echo $image; ?>" style="float: left;margin-top: -11px;width: 100px;margin-left:10px;" />')
【问题讨论】:
标签: php codeigniter