Contact form help, Email not being sent |
Contact form help, Email not being sent |
HLA91 |
May 5 2007, 09:04 AM
Post
#1
|
Member Group: Members Posts: 33 Joined: 11-February 07 From: South Wales Member No.: 1,861 |
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 CODE <!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 © 2007 Harry Angell   ;   ; <font face="Arial Unicode MS" size="4"><a href="index.htm">Home</a></font></div> </body> </html> and the sendmail.php script CODE <? $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 |
Darin McGrew |
May 5 2007, 11:37 AM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
What happens when you try to use the form? What error messages show up in the logs?
|
HLA91 |
May 5 2007, 12:01 PM
Post
#3
|
Member Group: Members Posts: 33 Joined: 11-February 07 From: South Wales Member No.: 1,861 |
there is no error message it works fine apart from the email's aren't being received and ive double checked the address.
|
Sieth |
May 22 2007, 08:02 PM
Post
#4
|
Group: Members Posts: 7 Joined: 15-May 07 Member No.: 2,815 |
The whole thing works fine for me, i changed the e-mail to my own and didn't have a problem... message came straight through.
oh i also changed <? to <?php i've found its good to use <?php just out of habit... just incase.... but yep works fine for me mate. |
Lo-Fi Version | Time is now: 27th April 2024 - 11:56 PM |