蓝雨 发表于 2008-2-29 08:55:00

新用户注册同时发送邮件通知和论坛方法

修改register.php<BR>找到:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code0\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code0><FONT face=新宋体>if($welcomemsg == 1) {<BR>      $db->query(\"INSERT INTO {$tablepre}pms (msgfrom, msgfromid, msgtoid, <BR>folder, new, subject, dateline, message)<BR>          VALUES (\'System Message\', \'0\', \'$uid\', \'inbox\', \'1\', <BR>\'$welcomtitle\', \'$timestamp\',\'$welcomemsgtxt\')\");<BR>      $db->query(\"UPDATE {$tablepre}members SET newpm=\'1\' WHERE <BR>uid=\'$uid\'\");</FONT></CODE></DIV>在下面加上
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code1\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code1><FONT face=新宋体>sendmail(\"$username <$email>\", $welcomtitle, $welcomemsgtxt);</FONT></CODE></DIV>后台注册与访问控制---发送欢迎信息选 发送欢迎短消息
页: [1]
查看完整版本: 新用户注册同时发送邮件通知和论坛方法