yourphp留言增加邮件提醒功能
/**
* 录入
*
*/
public function insert()
{
if($this->moduleid!=6 && !in_array($this->_groupid,explode(',',$this->categorys[$_POST['catid']]['postgroup']))) $this->error (L('add_no_postgroup'));
$c=A('Admin/Content');
$_POST['ip'] = get_client_ip();
$userid = $this->_userid;
$username = $this->_username ? $this->_username : get_safe_replace($_POST['username']);
$r = sendmail("448687549@qq.com","网站提示您有一条新留言,请登陆后台查看!",$_POST['content'],$this->Config); //发送电子邮件
$c->insert($this->module[$this->moduleid]['name'],$this->fields,$userid, $username,$this->_groupid);
}