0
這是我的電子郵件發送代碼電子郵件偏好並不工作
功能send_letter()
{
$config['mailtype'] = 'text or html';
$this->email->initialize($config);
$description = $this->input->post('description',true);
$subject = $this->input->post('subject',true);
$this->load->model('newsletter_model');
$this->data['mail_list'] = $this->newsletter_model->getmaillist();
foreach($this->data['mail_list'] as $val)
{
$this->email->from('[email protected]', 'Imageinit');
$this->email->subject($subject);
$this->email->message($description);
$this->email->set_newline("\r\n");
$this->email->to($val['emailid']);
$this->email->send();
}
$newdata=array('success'=>1);
$this->session->set_userdata($newdata);
$this->index();
}
電子郵件發送successfully..but當我發送HTML格式的郵件數據還包含HTML數據
eg ..如果我用粗體標記發送數據,它會顯示爲粗體標記。不會使文本粗體顯示