1 个回复
CMSYOU - CMS企业网站定制专家
赞同来自:
foreach ($mails as $m) {
sendmail($m, L('tips'), $this->M['mailmessage']);
}
$f_info = $this->db->get_one(array('modelid'=>$formid, 'siteid'=>$this->siteid));
$MailSubject = '用户提交表单['.$f_info['name'].'] 留言';
$Fields = getcache('formguide_field_'.$formid, 'model');
$Fields['username']['name'] = '用户名';
$Fields['datetime']['name'] = '提交时间';
$Fields['ip']['name'] = '提交IP';
unset($data['userid'], $data['datetime']);
foreach($data as $k=>$v){
$MailBody .= $Fields[$k]['name'].' :'.$v.'<br />';
}
foreach ($mails as $m) {
sendmail($m, $MailSubject, $MailBody.$this->M['mailmessage']);
}
最新活动:2014-12-20 09:57
浏览:2777 次
关注:1 人
Copyright © 2008-2024 CMSYOU - 互助问答社区 - 粤ICP备10060801号-3 RSS Feed
欢迎加入QQ群(346494585) “让我们一起来学习CMS建站吧!”
要评论问题请先登录或注册