<?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-0436_企业网站网页源码欧美前端模板.zip (101个子文件)
RegExp.as 24KB
FocusManager.as 17KB
ScrollSelectList.as 16KB
ComboBox.as 12KB
UIObject.as 12KB
SimpleButton.as 11KB
DepthManager.as 11KB
ScrollBar.as 10KB
ScrollView.as 9KB
SelectableRow.as 9KB
DataSelector.as 8KB
CSSSetStyle.as 8KB
Form.as 8KB
ComboBase.as 8KB
Defaults.as 7KB
Button.as 7KB
FormManager.as 6KB
TextInput.as 6KB
RectBorder.as 6KB
UIObjectExtensions.as 6KB
ButtonSkin.as 6KB
RadioButton.as 5KB
List.as 5KB
OverlappedWindows.as 5KB
SelectItem.as 5KB
RadioButtonGroup.as 5KB
ExternalContent.as 4KB
DataProvider.as 4KB
EmailValidator.as 4KB
FormItemsGroup.as 4KB
PopUpManager.as 4KB
FocusRect.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
UIComponentExtensions.as 1KB
FormItem.as 1KB
CSSStyleDeclaration.as 1KB
RadiobuttonItem.as 971B
HScrollBar.as 916B
CheckboxItem.as 914B
FormItemsFactory.as 883B
VScrollBar.as 782B
FormValidatorsFactory.as 777B
ColoredSkinElement.as 707B
SkinElement.as 509B
Delegate.as 418B
Border.as 310B
FormValidatorType.as 266B
FormItemType.as 235B
IFormValidator.as 71B
contact.asp 2KB
25385.fla 9.51MB
25385.html 733B
25385-h.jpg 73KB
25385-b.jpg 63KB
25385-m.jpg 12KB
contact.php 2KB
25385.swf 1.93MB
25385.swf 1.92MB
Tahoma.ttf 374KB
Arial.ttf 359KB
Tahoma Bold.ttf 344KB
Arial Bold.ttf 282KB
Verdana.ttf 168KB
HansHand.ttf 56KB
standard 07_65.ttf 55KB
Swiss 721 BT Bold.ttf 36KB
standard 07_53.ttf 25KB
25385-form04configuration.xml 6KB
25385-form07configuration.xml 6KB
25385-form04configuration.xml 6KB
25385-form07configuration.xml 6KB
25385-form07structure.xml 1KB
25385-form07structure.xml 1KB
25385-days.xml 825B
25385-days.xml 825B
25385-form04structure.xml 465B
25385-form04structure.xml 465B
25385-years.xml 412B
25385-years.xml 412B
25385-months.xml 386B
25385-months.xml 386B
25385-numbers.xml 185B
共 101 条
- 1
- 2
资源评论
qw_6918966011
- 粉丝: 23
- 资源: 6161
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功