DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Contact us form help (http://www.daniweb.com/forums/thread77457.html)

HLA91 May 5th, 2007 10:59 am
Contact us form help
 
Hi
I got this script of a tutorial site and I placed it on my site but it seems to work fine apart from it doesn't send the email can anyone help me please.

the contact us page
<!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>
    <title>Contact Us</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
   
</head>
<body>
<h1 align="center">Contact Us</h1>
<h2>We value your opinions!</h2>
<form method="post" action="sendmail.php">
  Email: <input name="email" type="text" /><br />
  Message:<br />
  <textarea name="message" rows="15" cols="40">
  </textarea><br />
  <input type="submit" />
</form><div id="footer">
    All contents of this site &copy; 2007 Harry Angell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;
    <font face="Arial Unicode MS" size="4"><a href="index.htm">Home</a></font></div>
</body>
</html>
and the sendmail.php script
<?
  $email = $_REQUEST['email'] ;
  $message = $_REQUEST['message'] ;

  mail( "praytotherock@hotmail.co.uk", "Feedback Form Results",
    $message, "From: $email" );
  header( "Location: http://harang.freehostia.com/thankyou.html" );
?>
can anyone tell me whats wrong like I said it looks like it is functioning fine but the emails just aren't being sent.

Many thanks
HLA91

Dukane May 5th, 2007 3:47 pm
Re: Contact us form help
 
What e-mail address do you want the e-mail sent to? Is it praytotherock@hotmail.co.uk?

HLA91 May 5th, 2007 6:26 pm
Re: Contact us form help
 
Yes thats the one

HLA91 May 5th, 2007 6:33 pm
Re: Contact us form help
 
Its ok i just found out my web host won't allow emails to be sent through scripts
thanks anyway

HLA91


All times are GMT -4. The time now is 8:50 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC