0
我需要在我的电子邮件正文中添加一个图像签名,我将该消息写入一个textarea,并且变量$ message不发送图像,只发送文本,当我使用可编辑的DIV,而不是文本区域,该消息得到空的,在这里我的代码:Codeigniter:给我的电子邮件添加一个签名
//Controller
$destino = $this->load->view("destino");
$asunto = $this->input->post("asunto");
$mensaje = $this->input->post("mensaje");
$this->email->set_newline("\r\n");
$this->email->from('[email protected]');
$this->email->to($destino);
$this->email->subject($asunto);
$this->email->message($mensaje);
//view message
<div class="col-md-9" style="float: right;">
<textarea id="editor" name="mensaje">
$this->load->view('firma');
</textarea>
是@cfnerd,'mailtype'=>'html' –