혼자 틈틈히 오래된 웹사이트를 제가 하나하나 수정해 나가고 있는데.
웹페이지에 손님들꼐서 문의 하고 클릭하면 제 메일로 와야 하는데 메일이 전혀 오지 않고 있습니다.
제가 무엇을 건드렸는지.....문제가 무엇인지 좀 찾아 주시면 감사드리겠습니다.
<html>
<head>
<title>Make an enquiry - Cherry Tree Lodge Motel</title>
<meta name="description" content="Make an enquiry - Cherry Tree Lodge Motel" />
<meta name="keywords" content="Make an enquiry - Cherry Tree Lodge Motel" />
<link href="style.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
<!--
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000
// Duration of crossfade (seconds)
var crossFadeDuration = 1
// Specify the image files
// =======================================
// Duplicate This Part For New Slice
var Pic = new Array() // don't touch this
Pic[0] = 'images/imgswap1.jpg'
Pic[1] = 'images/imgswap2.jpg'
Pic[2] = 'images/imgswap3.jpg'
// =======================================
// do not edit anything below this line
// =======================================
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
function runSlideShow(){
if (document.all){
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply()
}
document.images.SlideShow.src = preLoad[j].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()
}
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runSlideShow()', slideShowSpeed)
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body bgcolor="531C2D" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="runSlideShow(); MM_preloadImages('images/images/but01.gif','images/images/but02.gif','images/images/but03.gif','images/images/but04.gif','images/images/but05.jpg');">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25"><div align="center"> </div></td>
</tr>
<tr>
<td><div align="center">
<table width="767" height="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td><table width="765" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="E1D4B6">
<tr>
<td height="150"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/sidebar1.jpg" width="150" height="150" alt=""></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/header.gif" width="114" height="40" alt=""></td>
</tr>
<tr>
<td><a href="index.html" onMouseOver="MM_swapImage('Image1','','images/images/but01.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/but01.gif" alt="" name="Image1" width="114" height="22" border="0" id="Image1"></a></td>
</tr>
<tr>
<td><a href="facilities.html" onMouseOver="MM_swapImage('Image2','','images/images/but02.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/but02.gif" alt="" name="Image2" width="114" height="22" border="0" id="Image2"></a></td>
</tr>
<tr>
<td><a href="
https://www.securedomain.net.nz/cherry/bookingform.php" target="_blank" onMouseOver="MM_swapImage('Image3','','images/images/but03.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/but03.gif" alt="" name="Image3" width="114" height="22" border="0" id="Image3"></a></td>
</tr>
<tr>
<td><a href="contact.html" onMouseOver="MM_swapImage('Image4','','images/images/but04.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/but04.gif" alt="" name="Image4" width="114" height="21" border="0" id="Image4"></a></td>
</tr>
<tr>
<td><a href="local.html" onMouseOver="MM_swapImage('Image5','','images/images/but05.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="images/but05.jpg" alt="" name="Image5" width="114" height="23" border="0" id="Image5"></a></td>
</tr>
</table></td>
<td><img src="images/imgswap1.jpg" alt="" name="SlideShow" width="501" height="150" id="SlideShow"></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><img src="images/sidebar2.jpg" width="150" height="219" alt=""></td>
<td valign="top"><p> </p>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><p> </p>
<p><img src="graphics/enquiry-title.gif" width="286" height="54" vspace="6"></p>
<p> </p>
<table width="100%" border="1" align="center" cellpadding="8" cellspacing="1" bordercolor="C7CAAF">
<tr>
<td bordercolor="#FFFFFF" bgcolor="F5EDDC">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><?php
// Error flag.
// -1 : Initial value.
// 0 : No errors in the submitted form.
// 1 : Errors exist in the submitted form.
$error = -1;
if (isset($_POST['submit'])) {
$error = 0;
$name = $_POST['name'];
$phoneNum = $_POST['phonenum'];
$email = $_POST['email'];
$detail = $_POST['detail'];
if ($name == "") {
$error = 1;
$nameEmpty = 1;
}
if ($phoneNum == "") {
$error = 1;
$phoneNumEmpty = 1;
}
$emailFilter = "/^.+@.+\..{2,3}$/";
$illegalChars = "/[\(\)\<\>\,\;\:\/\[\]]/";
if (!preg_match($emailFilter, $email) || preg_match($illegalChars, $email)) {
$error = 1;
$invalidEmail = 1;
}
if ($detail == "") {
$error = 1;
$detailEmpty = 1;
}
}
if ($error == 0) {
$mailfrom = 'From: Online Enquiry <www.cherrytreemotel.co.nz>';
// $mailfrom = "From: $name <$email>";
$mailsub = "New Online Enquiry from $name";
$mailcontent =
"Note - Please use the customer's email address above to reply to this message.\n" .
"\n" .
"Name: $name\n" .
"Phone Number: $phoneNum\n" .
"Email Address: $email\n" .
"\n" .
"Enquiry Details:\n" .
"$detail\n" .
"\n";
if (mail($mailto, $mailsub, $mailcontent, $mailfrom)) {
//minha
mail($mailTo2, $mailsub, $mailcontent, $mailfrom);
$mailto = "$email";
$mailsub = 'Cherry Tree Lodge Motel: Your enquiry';
$mailcontent =
"Dear $name\n" .
"\n" .
"Thank you very much for your enquiry.\n" .
"\n" .
"You have specified your phone number as $phoneNum.\n" .
"\n" .
"Details of your enquiry are as follows:\n" .
"$detail\n" .
"\n" .
"We will get back to you as soon as possible.\n" .
"\n" .
"Kind Regards,\n" .
"Cherry Tree Lodge Motel\n";
// mail($mailto, $mailsub, $mailcontent, $mailfrom);
print("Your enquiry has been successfully submitted. We will get back to you as soon as possible.</ br>\n");
}
else {
$mailError = 1;
print("Your enquiry was not submitted successfully. Please try again. If problem persists, please email us directly at
[email protected]</ br>\n");
}
}
else {
print("<form method=post>\n");
print("<table width=477 border=0 align=center cellpadding=0 cellspacing=0>\n");
if ($nameEmpty) {
print("<tr><td align=right width=100><font color=ff0000>Name* </font></td><td><input name=name type=text maxlength=32 size=32></input></td></tr>\n");
}
else {
print("<tr><td align=right width=100>Name </td><td><input name=name type=text maxlength=32 size=32 value=\"$name\"></input></td></tr>\n");
}
if ($phoneNumEmpty) {
print("<tr><td align=right width=100><font color=ff0000>Phone* </font></td><td><input name=phonenum type=text maxlength=32 size=32></input></td></tr>\n");
}
else {
print("<tr><td align=right width=100>Phone </td><td><input name=phonenum type=text maxlength=32 size=32 value=\"$phoneNum\"></input></td></tr>\n");
}
if ($invalidEmail) {
print("<tr><td align=right width=100><font color=ff0000>Email* </font></td><td><input name=email type=text maxlength=48 size=48></input></td></tr>\n");
}
else {
print("<tr><td align=right width=100>Email </td><td><input name=email type=text maxlength=48 size=48 value=\"$email\"></input></td></tr>\n");
}
print("<tr><td> </td></tr>\n");
if ($detailEmpty) {
print("<tr><td align=right width=100><font color=ff0000>Details* </font></td><td><textarea name=detail maxlength=1024 cols=64 rows=8></textarea></td></tr>\n");
}
else {
print("<tr><td align=right width=100>Details </td><td><textarea name=detail maxlength=1024 cols=64 rows=8>$detail</textarea></td></tr>\n");
}
echo " <tr><td colspan=\"2\" height=5 class=style7></td></tr>\n";
echo " <tr><td colspan=\"2\" align=center class=style7><input name=submit type=submit value=\"Submit\"></input></td></tr>\n";
echo "</table>\n";
echo "</form>\n";
}
?></td>
</tr>
</table></td>
</tr>
</table>
<p align="justify"> </p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="21"><img src="images/footer.gif" alt="" width="765" height="21" border="0" usemap="#Map"></td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="40"><div align="center"><strong><font color="7F5E65" size="1" face="Arial, Helvetica, sans-serif">
</tr>
</table>
<map name="Map">
<area shape="rect" coords="601,3,750,19" href="enquiry.php">
</map>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1850047-6");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>