Contact us form help

Thread Solved

Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Contact us form help

 
0
  #1
May 5th, 2007
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
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>Contact Us</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  7.  
  8. </head>
  9. <body>
  10. <h1 align="center">Contact Us</h1>
  11. <h2>We value your opinions!</h2>
  12. <form method="post" action="sendmail.php">
  13. Email: <input name="email" type="text" /><br />
  14. Message:<br />
  15. <textarea name="message" rows="15" cols="40">
  16. </textarea><br />
  17. <input type="submit" />
  18. </form><div id="footer">
  19. All contents of this site &copy; 2007 Harry Angell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
  20. ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
  21. ;&nbsp;
  22. <font face="Arial Unicode MS" size="4"><a href="index.htm">Home</a></font></div>
  23. </body>
  24. </html>
and the sendmail.php script
  1. <?
  2. $email = $_REQUEST['email'] ;
  3. $message = $_REQUEST['message'] ;
  4.  
  5. mail( "praytotherock@hotmail.co.uk", "Feedback Form Results",
  6. $message, "From: $email" );
  7. header( "Location: http://harang.freehostia.com/thankyou.html" );
  8. ?>
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
Last edited by HLA91; May 5th, 2007 at 11:00 am.
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 262
Reputation: Dukane is an unknown quantity at this point 
Solved Threads: 22
Dukane's Avatar
Dukane Dukane is offline Offline
Posting Whiz in Training

Re: Contact us form help

 
0
  #2
May 5th, 2007
What e-mail address do you want the e-mail sent to? Is it praytotherock@hotmail.co.uk?
It is very important to read this: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Re: Contact us form help

 
0
  #3
May 5th, 2007
Yes thats the one
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 179
Reputation: HLA91 is an unknown quantity at this point 
Solved Threads: 2
HLA91 HLA91 is offline Offline
Junior Poster

Re: Contact us form help

 
0
  #4
May 5th, 2007
Its ok i just found out my web host won't allow emails to be sent through scripts
thanks anyway

HLA91
You know your a geek, if you introduce your wife as "mylady@home.wife"
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC