<?php
$sbj_visitor='Newsletter subscription confirmation email from ';
$sbj_owner='Newsletter subscription request from ';
$header="Content-type: text/html; charset=utf-8 \r\n";
$name=$_POST['name'];
$email=$_POST['email'];
$owner=$_POST['owner'];
$owner_email=$_POST['owner_email'];
$sitename=$_POST['sitename'];
$sbj_visitor.=$sitename;
$sbj_owner.=$sitename;
$msg_visitor='<a href="http://'.$sitename.'">'.$sitename.'</a>'."\n".'<br>'.'Hi, '.$name."\n".'<br>'.'Thank you for subscribing to our newsletter!';
$msg_owner='<a href="http://'.$sitename.'">'.$sitename.'</a>'."\n".'<br>'.'This email has been sent via newsletter subscription form on your website. A new visitor would like to be added to your website\'s newsletter:'."\n".'<br>'.'Visitor name: '.$name."\n".'<br>'.'Visitor email: '.$email."\n".'<br>'.'Please add him (her) to your newsletter list.';
try{
if(!mail($email,$sbj_visitor,$msg_visitor,$header.'From: '.$owner_email)){
throw new Exception('mail failed');
}else{
echo "mail to visitor sent \n";
}
}catch(Exception $e){
echo $e->getMessage() ."\n";
}
try{
if(!mail($owner_email,$sbj_owner,$msg_owner,$header.'From: '.$email)){
throw new Exception('mail failed');
}else{
echo "mail to owner sent";
}
}catch(Exception $e){
echo $e->getMessage() ."\n";
}
?>
没有合适的资源?快使用搜索试试~ 我知道了~
餐馆美食HTML5网站模板是一款适合餐饮美食网站的HTML5模板下载.rar
共88个文件
jpg:28个
png:24个
js:13个
需积分: 0 0 下载量 79 浏览量
2023-09-09
13:51:02
上传
评论
收藏 3.31MB RAR 举报
温馨提示
html模板
资源推荐
资源详情
资源评论
收起资源包目录
餐馆美食HTML5网站模板是一款适合餐饮美食网站的HTML5模板下载.rar (88个子文件)
page2_img3.jpg 20KB
style.css 10KB
superfish.css 2KB
index-1.html 9KB
page4_img4.jpg 69KB
page3_img3.jpg 25KB
magnify.png 5KB
tms-0.4.1.js 36KB
page1_img1.jpg 17KB
jquery.carouFredSel-6.1.0-packed.js 36KB
PIE.php 613B
big2.jpg 234KB
sForm.js 3KB
sprite_prev.png 1KB
forms.js 6KB
MailHandler-sub.php 1KB
page4_img1.jpg 60KB
PIE.htc 40KB
jquery.prettyPhoto.js 35KB
slide2.jpg 731KB
page1_img4.jpg 25KB
big1.jpg 261KB
page2_img4.jpg 17KB
page3_img1.jpg 24KB
big3.jpg 301KB
page5_img1.jpg 16KB
contentPatternLeft.png 137B
logo.png 5KB
page2_img5.jpg 19KB
responsive.css 541B
sprite_x.png 1KB
page1_img3.jpg 20KB
default_thumbnail.gif 227B
default_thumb.png 2KB
contentPatternTop.png 142B
spacer.png 922B
slide1.jpg 398KB
page3_img4.jpg 17KB
reset.css 771B
zerogrid.css 2KB
contentPattern.png 121B
pagination.png 2KB
hor_separator.png 2KB
page5_img2.jpg 20KB
index-3.html 6KB
css3-mediaqueries.js 16KB
sprite.png 3KB
socials.png 2KB
index-4.html 8KB
slider.css 1KB
prettyPhoto.css 27KB
favicon.ico 31KB
page1_img2.jpg 28KB
html5shiv.js 2KB
slide.jpg 364KB
superfish.js 4KB
index-2.html 8KB
index.html 9KB
form.css 2KB
big4.jpg 99KB
index-5.html 7KB
page4_img2.jpg 52KB
page3_img6.jpg 31KB
page2_img2-1.png 71KB
btnNext.png 1KB
MailHandler.php 1KB
marker.png 1KB
page2_img6.jpg 25KB
page3_img2.jpg 29KB
btnPrevious.png 1KB
sprite_next.png 1KB
jquery.easing.1.3.js 8KB
jquery.equalheights.js 1KB
jquery.js 90KB
contentPatternRight.png 136B
grid.css 5KB
contentPatternBottom.png 142B
ie.css 348B
jquery-migrate-1.1.1.js 7KB
page2_img1.jpg 49KB
sprite_y.png 1KB
welcome_img.png 51KB
loader.gif 2KB
page2_img2.png 68KB
page3_img5.jpg 34KB
page4_img3.jpg 61KB
prevnext.png 4KB
camera.js 68KB
共 88 条
- 1
资源评论
Q_97095639
- 粉丝: 380
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功