我想用html表單向客戶發送電子郵件。無法在Codeigniter中發送HTML格式的電子郵件
這裏是控制器文件。
$email = '[email protected]';
$title = 'Introducing our new product!';
$msg = $this->load->view('admin/email_new_version', '', true);
$config['mailtype'] = 'html';
$this->load->library('email', $config);
$this->email->from('[email protected]', 'company');
$this->email->to($email);
$this->email->subject($title);
$this->email->message($msg);
$this->email->send();
它看起來很好,但我收到郵件時html不起作用。
它看起來不錯,但沒有工作;; – Jake