<?php
//-----------------Getting data sent by flash---------------------
foreach ($_POST as $key => $value){
if ($key != 'mail_to' && $key != 'smtp_server' && $key != 'smtp_port' && $key != 'mail_from' && $key != 'mail_subject' && $key != 'plain_text'){
$mail_body .= '<b>'.str_replace('_',' ',$key).'</b>:<br/>';
$mail_body .= ''.stripslashes($value).'<br/>';
}
}
//-----------------------------------------------------------------
$message = '<html><body>'.$mail_body.'</body></html>'; // mail body
//------------if plain text is set to true removing html tags------
if ($_POST['plain_text']=='true') {
$message = str_replace('<br/>',"\r\n", $message);
$message = strip_tags($message);
//------------------------------------------------------------------
} else {
//----otherwise composing message headers---------------------------
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//------------------------------------------------------------------
}
//------------setting conf data-------------------------------------
$to = $_POST['mail_to'];
$from = $_POST['mail_from'];
$subject = $_POST['mail_subject'];
$smtp_server = $_POST['smtp_server'];
$smtp_port = $_POST['smtp_port'];
//------------------------------------------------------------------
//---------setting header info--------------------------------------
$headers .= 'To: '.$to. "\r\n";
$headers .= 'From: Site visitor ' .$from. "\r\n";
//------------------------------------------------------------------
if (mail($to, $subject, $message, $headers)){ // sending mail
print('&mail=1'); //succes
} else {
print('&mail=0');//failure
}
?>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
TM-0194_企业网站网页源码欧美整站模板.zip (102个子文件)
contact.asp 2KB
style.css 1KB
style.css 151B
music1.fla 11.92MB
music2.fla 11.47MB
music3.fla 9.68MB
main_v8.fla 3.27MB
menu.gif 4KB
menu1.gif 4KB
k1.gif 2KB
logo.gif 1KB
5_w2.gif 489B
4_w1.gif 469B
w1.gif 397B
4_w2.gif 314B
5_w1.gif 266B
1_w2.gif 178B
3_w1.gif 131B
m4.gif 131B
m2.gif 131B
m1.gif 131B
m3.gif 131B
3_w2.gif 130B
2_w1.gif 126B
6_w1.gif 124B
m5-5.gif 117B
m1-1.gif 117B
m3-3.gif 117B
m2-2.gif 117B
m6-6.gif 117B
m4-4.gif 116B
m5.gif 115B
2_w2.gif 112B
5_w3.gif 102B
1_w1.gif 98B
k2.gif 65B
k3.gif 65B
21177-bg.gif 59B
bg.gif 59B
bg.gif 59B
line.gif 58B
line2.gif 50B
spacer.gif 43B
index-2.html 5KB
index-3.html 5KB
index-5.html 5KB
index-6.html 5KB
index-4.html 4KB
index-1.html 4KB
index.html 2KB
index.html 1KB
21177.html 761B
21177-b.jpg 91KB
bg1.jpg 77KB
bg4.jpg 75KB
bg5.jpg 73KB
bg3.jpg 70KB
21177-h.jpg 70KB
bg2.jpg 69KB
21177-rs.jpg 57KB
21177-m.jpg 16KB
5_p1.jpg 11KB
1_p1.jpg 10KB
3_p5.jpg 8KB
2_p1.jpg 8KB
2_p2.jpg 7KB
4_p2.jpg 7KB
3_p4.jpg 5KB
4_p1.jpg 5KB
3_p1.jpg 5KB
3_p2.jpg 5KB
3_p3.jpg 5KB
Swz721bi.PFB 33KB
Swz721i.PFB 32KB
Swz721b.PFB 31KB
Swz721n.PFB 31KB
Swz721b.pfm 2KB
Swz721n.pfm 2KB
Swz721i.pfm 2KB
Swz721bi.pfm 2KB
contact.php 2KB
03_Solutions.psd 4.12MB
04_Partners.psd 4MB
01_AboutUs.psd 3.92MB
06_Privacy.psd 3.89MB
02_Services.psd 3.87MB
00_Splash.psd 3.53MB
05_Contacts.psd 2.52MB
07_Loading.psd 758KB
21177.swf 385KB
main_v8.swf 385KB
tahomab0.ttf 344KB
tahoma.ttf 303KB
tahomabd.ttf 290KB
STAN0753.TTF 57KB
STAN0755.TTF 56KB
STAN0757.TTF 56KB
Swz721i.ttf 36KB
Swz721bi.ttf 36KB
Swz721n.ttf 36KB
共 102 条
- 1
- 2
资源评论
wsnbb_2023
- 粉丝: 15
- 资源: 6004
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功