| Welcome to Webforumz.com. |
|
Jun 28th, 2006, 18:00
|
#1 (permalink)
|
|
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,058
|
cpanel problem
would someone be able to explain to me what is going on please,
i have made 4 email forms 2 out of php and 2 out of cgi, but the problem is that the forms tell me that the messages have been sent when i test it, but i dont recieve anything - i have tryed 3 different addresses
also i have had these scripts looked at by a professional website designer and he says there is nothing wrong with them,
so, i contacted my host and he said there was no problems with my email,
now i am totally stuck where to go next ??
can someone help please, thank you
|
|
|
Jun 28th, 2006, 23:47
|
#2 (permalink)
|
|
Up'n'Coming Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 99
|
Re: cpanel problem
Could you post the php code you were using?
I'll test it on my server.
|
|
|
Jun 29th, 2006, 10:36
|
#3 (permalink)
|
|
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,058
|
Re: cpanel problem
save as contact.php
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<TITLE>Luv-2-Cook.Com - Online Recipes, Cooking & Forums, Free Recipes</TITLE>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta name="description" content="The best site to learn all about food and cooking, with forums, recipes and lots more. Click here to find the latest and greatest recipes">
<meta name="Keywords" content="low calorie and vegetarian recipes, world food and wine, a chefs help, chocolate and dessert recipes, italian food, recipes whole foods, free recipes, chocolate chip cookies, vegetarian recipes, chicken, dessert recipes, cooking light cooking recipes, italian cooking, food, italian cookery, chocolate desserts, desserts, italian cuisine,
cooking, chef, culinary arts, beef, vegetarian, tip, culinary, tips, cookery books, cuisine" />
<meta name="resource-type" content="document">
<meta name="generator" content="www.e-HQ.co.uk">
<meta http-equiv="pragma" content="no-cache">
<meta name="revisit-after" content="15 days">
<meta name="classification" content="Food and Beverage">
<meta name="robots" content="ALL">
<meta name="distribution" content="Global">
<meta name="rating" content="Safe For Kids">
<meta name="copyright" content="Glynn Alexander">
<meta name="author" content="Glynn Alexander">
<meta http-equiv="reply-to" content="Glynn Alexander">
<meta name="language" content="english">
<meta name="doc-type" content="Public">
<meta name="doc-class" content="Completed,">
<meta name="doc-rights" content="Copywritten Work,">
<style type="text/css">
<!--
body {
background-image: url(background.gif);
}
a:link {
color: #FFCC99;
}
a:visited {
color: #FFCC99;
}
a:active {
color: #FFCC99;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
<table width="771" height="97" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="790" bgcolor="#FFFFFF" scope="col"><div align="left">
<table width="770" height="214" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="475" rowspan="8" bgcolor="#FFFFFF" scope="col"><table width="473" height="211" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="19" height="226" rowspan="2" scope="col"> </th>
<th width="454" height="193" scope="col"><img src="logo.gif" width="452" height="179" align="left" /></th>
</tr>
<tr>
<th height="19" scope="col"> </th>
</tr>
</table>
<div align="right"></div>
<div align="right"></div></th>
<th width="151" bgcolor="#FFFFFF" scope="col"><div align="left"><a href="index.html"><img src="home.jpg" width="103" height="33" border="0" /></a></div></th>
<th width="144" bgcolor="#FFFFFF" scope="col"> </th>
</tr>
<tr>
<th bgcolor="#FFFFFF" scope="col"><div align="left"><a href="recipes.html"><img src="free recipes.jpg" width="103" height="28" border="0" /></a></div></th>
<th bgcolor="#FFFFFF" scope="col"> </th>
</tr>
<tr>
<th bgcolor="#FFFFFF" scope="col"><div align="left"><a href="/Forums"><img src="forums.jpg" width="103" height="27" border="0" /></a></div></th>
<th bgcolor="#FFFFFF" scope="col"> </th>
</tr>
<tr>
<th bgcolor="#FFFFFF" scope="col"><div align="left"><a href="learning.html"><img src="learning.jpg" width="102" height="27" border="0" /></a></div></th>
<th bgcolor="#FFFFFF" scope="col"> </th>
</tr>
<tr>
<th bgcolor="#FFFFFF" scope="col"><div align="left"><a href="video.html"><img src="video.jpg" width="102" height="27" border="0" /></a></div></th>
<th bgcolor="#FFFFFF" scope="col"> </th>
</tr>
<tr>
<th bgcolor="#FFFFFF" scope="col"><div align="left"><a href="shop.html"><img src="shop.jpg" width="103" height="27" border="0" /></a></div></th>
<th bgcolor="#FFFFFF" scope="col"> </th>
</tr>
<tr>
<th bgcolor="#FFFFFF" scope="col"><div align="left"><a href="events.html"><img src="events.jpg" width="103" height="27" border="0" /></a></div></th>
<th bgcolor="#FFFFFF" scope="col"> </th>
</tr>
<tr>
<th bgcolor="#FFFFFF" scope="col"><div align="left"><a href="links.html"><img src="links.jpg" width="103" height="22" border="0" /></a></div></th>
<th bgcolor="#FFFFFF" scope="col"> </th>
</tr>
</table>
</div>
<table width="704" height="33" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="704" scope="col"> </th>
</tr>
</table>
<table width="730" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="238" height="25" bgcolor="#FFCC99" scope="col"> </th>
<th width="238" bgcolor="#FFCC99" scope="col"> </th>
<th width="254" bgcolor="#FFCC99" scope="col"><form action="search.php?mode=results" method="post">
<div align="left">
<input name="search_keywords" type="text" class="post" onfocus="this.value=''" value="Search..." size="25" />
<input class="button" name="Submit" type="submit" value="Go" />
</div>
</form></th>
</tr>
</table>
<table width="754" height="207" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="598" height="31" scope="col"> </th>
<th width="156" scope="col"> </th>
</tr>
<tr>
<th height="129" scope="col"><table width="591" height="600" border="1" cellpadding="1" cellspacing="0">
<tr>
<th width="585" height="544" bordercolor="#FFCC99" scope="col"><table width="400" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><form name="form1" method="post" action="send_contact.php">
<div align="left">
<table width="110%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="16%">Subject</td>
<td width="2%">:</td>
<td width="82%"><input name="subject" type="text" id="subject" size="50"></td>
</tr>
<tr>
<td>Message</td>
<td>:</td>
<td><textarea name="detail" cols="51" rows="15" id="detail"></textarea></td>
</tr>
<tr>
<td>Name</td>
<td>:</td>
<td><input name="name" type="text" id="name" size="50"></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><input name="customer_mail" type="text" id="customer_mail" size="50"></td>
</tr>
<tr>
<td height="54"> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</div>
</form>
</td>
</tr>
</table> </th>
</tr>
</table></th>
<th width="156" scope="col"><script type="text/javascript"><!--
google_ad_client = "pub-2317449203528081";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "FED5AF";
google_color_bg = "FFFFFF";
google_color_link = "FED5AF";
google_color_url = "FED5AF";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </th>
</tr>
<tr>
<th height="19" scope="col"> </th>
<th width="156" scope="col"> </th>
</tr>
</table>
<table width="679" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="81" height="23" bgcolor="#FFCC99" scope="col"><div align="left"><a href="copyright.html"><img src="copyright.jpg" width="80" height="23" border="0" align="right" /></a></div></th>
<th width="214" bgcolor="#FFCC99" scope="col"> </th>
<th width="264" bgcolor="#FFCC99" scope="col"><a href="<A href="mailto:admin@luv-2-cook.com"><img">mailto:admin@luv-2-cook.com"><img src="contact.jpg" width="48" height="24" border="0" align="left" /></a></th>
<th width="120" bgcolor="#FFCC99" scope="col"><div align="right"><a href="terms.html"><img src="terms of use.jpg" width="103" height="23" border="0" /></a></div></th>
</tr>
</table>
<p> </p></th>
</tr>
</table>
</div>
</body>
</html>
this one save as send_contact.php
- Code: Select all
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$detail";
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
// Enter your email address
$to ='glynn.alexander@blueyonder.co.uk';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "Thank you for your email, I will read it as soon as i can";
}
else {
echo "ERROR";
}
?>
thank you
|
|
|
Jun 29th, 2006, 12:19
|
#4 (permalink)
|
|
Up'n'Coming Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 99
|
Re: cpanel problem
Yeah, the script works fine...
I'd contact your host again... It's 100% a host/server problem (as long as you've got the right address...)
Sorry I can't help more 
|
|
|
Jun 29th, 2006, 13:11
|
#5 (permalink)
|
|
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,058
|
Re: cpanel problem
ok, thanks anyway mate
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
php5 with cpanel
|
alexgeek |
Hosting & Domains |
3 |
Oct 3rd, 2007 17:37 |
|
|
|