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

Recommended Answers

All 3 Replies

Yes thats the one

Its ok i just found out my web host won't allow emails to be sent through scripts
thanks anyway

HLA91

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.