<?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-0410_企业网站网页源码欧美前端模板.zip (77个子文件)
TM-0410
screenshots
25678-b.jpg 36KB
25678-m.jpg 7KB
25678-h.jpg 51KB
site_flash
25678.html 562B
25678-form04structure.xml 597B
25678-form04configuration.xml 6KB
25678.swf 792KB
sources
flash
contact.php 2KB
mx
styles
CSSStyleDeclaration.as 1KB
CSSTextStyles.as 3KB
StyleManager.as 2KB
managers
PopUpManager.as 4KB
DepthManager.as 11KB
SystemManager.as 2KB
skins
CustomBorder.as 2KB
SkinElement.as 509B
Border.as 310B
RectBorder.as 1KB
core
View.as 3KB
ExternalContent.as 4KB
ScrollView.as 9KB
UIComponent.as 3KB
UIObject.as 12KB
events
EventDispatcher.as 2KB
UIEventDispatcher.as 3KB
controls
ComboBox.as 12KB
Button.as 7KB
listclasses
DataSelector.as 8KB
DataProvider.as 4KB
ScrollSelectList.as 16KB
List.as 5KB
CheckBox.as 2KB
ComboBase.as 8KB
TextInput.as 6KB
scrollClasses
ScrollThumb.as 2KB
ScrollBar.as 10KB
RadioButtonGroup.as 5KB
RadioButton.as 5KB
SimpleButton.as 11KB
effects
Tween.as 3KB
25678.fla 4.37MB
25678-form04structure.xml 597B
25678-form04configuration.xml 6KB
contact.asp 2KB
25678.swf 752KB
tm
freshComponents
forms
formItems
CheckboxItem.as 914B
RadiobuttonItem.as 971B
FormItemType.as 235B
SelectItem.as 5KB
FormItem.as 1KB
FormItemsFactory.as 883B
FormItemsGroup.as 4KB
TextItem.as 2KB
Form.as 8KB
validators
IFormValidator.as 71B
DateValidator.as 3KB
EmailValidator.as 4KB
StringValidator.as 1KB
FormValidatorsFactory.as 777B
FormValidatorType.as 266B
NumberValidator.as 1KB
FormManager.as 6KB
tabFixer
TabManager.as 3KB
utils
Delegate.as 418B
XMLParser.as 2KB
RegExp.as 24KB
Utils.as 1KB
fonts
standard 07_65.ttf 55KB
Semplice Regular.ttf 59KB
Verdana.ttf 168KB
Tahoma Bold.ttf 344KB
Arial Bold.ttf 282KB
Eras Light ITC.ttf 92KB
Arial.ttf 359KB
standard 07_53.ttf 25KB
Myriad Pro.otf 78KB
Myriad Pro Bold.otf 80KB
共 77 条
- 1
资源评论
qw_6918966011
- 粉丝: 23
- 资源: 6161
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功