connect(); if ($id != "") { $strQuery="select kind,title,email from info where id=$id and flag='Y'"; $db->Query($strQuery); if ($db->num_rows()==0) {die ("非法操作!");} $db->next_record(); list ($kind,$title,$email) =$db->Record; }else { Header("Location: charge.dll"); exit; } if (trim($action)=="booking" && $id!=""){ //=====发送邮件开始=== $emailBody=" booking ".$id."、".$title." 的订单


以下为客户".$session_member_regname."订阅".$title."所填写的资料:

单位名称: ".$en_name."

联系地址: ".$address."

邮 编:  ".$code."

联系人:  ".$contact."

电 话:  ".$tel."

传 真:  ".$fax."

E-mail:  ".$mail."

"; $subject = "中国家电网收费文章订单"; $attachment = ""; $from=""; if ($kind == "a") { $defaultemail = "cheaa@ihw.com.cn,lxlchn@263.net,info@cheaa.com,kingery@cheaa.com"; }else{ $defaultemail = "info@cheaa.com,kingery@cheaa.com"; } if (trim($email) != "") { $to = trim($email); }else {$to = $defaultemail;} $boundary = uniqid( ""); $headers = "From: 中国家电网 Content-type: multipart/mixed; boundary=\"$boundary\""; $emailBody = "--$boundary Content-type: text/html; charset=bg-2312 Content-transfer-encoding: 8bit $emailBody --$boundary Content-type: text/html; name=attachment.html Content-disposition: inline; filename=attachment.html Content-transfer-encoding: 8bit $attachment --$boundary--"; if (trim($to)!= ""){ if (mail($to, $subject, $emailBody, $headers)) { if ($kind == "a") { Header("Location: form2.dll"); exit; }else { Header("Location: form3.dll"); exit; } }else{ for ($i=0;$i<3;$i++) {echo "

 

";} echo ("

提交失败!

"); die ("返回
"); } } //====发送邮件结束=== } ?>
首页 -> 新闻频道 -> 返回收费社区首页
家电网 权威行业研究报告与统计数据
查询所订报告价格请点击此处

"; } ?>
为了使您更快捷的收到所订阅的报告,请务必准确填写以下信息,我们将对所有信息予以保密。

单位名称:
联系地址:
邮 编: 
联系人: 
电 话: 
传 真: 
E-mail: