我有一個處理電子郵件的電子郵件控制器。現在,我想從數據庫中讀取收件人郵件。如何使接收器電子郵件在codeigniter中呈動態
這是我的代碼
//Send email
$this->load->library('email');
$this->load->helper('email');
$this->email->set_mailtype("html");
$FLnames = $this->input->post('firstname')." ".$this->input->post('lastname');
$this->email->from($this->input->post('email'), $FLnames);
$this->email->to('[email protected]'); //<-------- I want this to be retrieved from the databse
$this->email->subject('Subject');
我有點新的CodeIgniter所以任何幫助,將不勝感激!