|
楼主 |
发表于 2008-9-10 11:00:56
|
显示全部楼层
这是我的程序:
$from = $_POST['from'];
$to = $_POST['to'];
$title = $_POST['title'];
$content = $_POST['content'];
$this->load->library('email');
$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/src/contrib/sendmail';
$config['charset'] = 'utf-8';
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
$this->email->from($from,'test');
$this->email->to($to);
$this->email->subject($title);
$this->email->message($content);
$this->email->send();
echo $this->email->print_debugger(); |
|