<?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-0318_企业网站网页源码欧美前端模板.zip (119个子文件)
RegExp.as 24KB
ScrollSelectList.as 16KB
ComboBox.as 12KB
UIObject.as 12KB
SimpleButton.as 11KB
DepthManager.as 11KB
ScrollBar.as 10KB
ScrollView.as 9KB
DataSelector.as 8KB
Form.as 8KB
ComboBase.as 8KB
XMLParser.as 7KB
Button.as 7KB
FormManager.as 6KB
TextInput.as 6KB
RadioButton.as 5KB
List.as 5KB
SelectItem.as 5KB
RadioButtonGroup.as 5KB
ExternalContent.as 4KB
DataProvider.as 4KB
EmailValidator.as 4KB
FormItemsGroup.as 4KB
PopUpManager.as 4KB
DateValidator.as 3KB
UIComponent.as 3KB
UIEventDispatcher.as 3KB
View.as 3KB
TabManager.as 3KB
Tween.as 3KB
CSSTextStyles.as 3KB
TextItem.as 2KB
SystemManager.as 2KB
EventDispatcher.as 2KB
StyleManager.as 2KB
CheckBox.as 2KB
ScrollThumb.as 2KB
CustomBorder.as 2KB
XMLParser.as 2KB
Utils.as 1KB
NumberValidator.as 1KB
RectBorder.as 1KB
StringValidator.as 1KB
FormItem.as 1KB
CSSStyleDeclaration.as 1KB
RadiobuttonItem.as 971B
CheckboxItem.as 914B
FormItemsFactory.as 883B
FormValidatorsFactory.as 777B
SkinElement.as 509B
Delegate.as 462B
Delegate.as 418B
Border.as 310B
FormValidatorType.as 266B
FormItemType.as 235B
IFormValidator.as 71B
contact.asp 2KB
contact.asp 2KB
26902.fla 139.45MB
26902.html 733B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
index.html 571B
26902_b_pic1.jpg 108KB
26902_b_pic1.jpg 108KB
26902_b_pic4.jpg 100KB
26902_b_pic4.jpg 100KB
26902_b_pic5.jpg 69KB
26902_b_pic5.jpg 69KB
26902_b_pic2.jpg 55KB
26902_b_pic2.jpg 55KB
26902-h.jpg 49KB
26902-b.jpg 40KB
26902_b_pic3.jpg 27KB
26902_b_pic3.jpg 27KB
26902-m.jpg 9KB
contact.php 2KB
contact.php 2KB
共 119 条
- 1
- 2
资源评论
qw_6918966011
- 粉丝: 22
- 资源: 6161
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功