Papalex606 Posted May 13, 2007 Author Share Posted May 13, 2007 lol.....nope, still nothing comes through...its rediculous...everything works perfect, i just dont recieve the email. Quote Link to comment https://forums.phpfreaks.com/topic/51178-i-need-help-with-a-contact-form-soo-bad-there-must-be-a-saviour-in-my-time-of-n/page/2/#findComment-252322 Share on other sites More sharing options...
Papalex606 Posted May 13, 2007 Author Share Posted May 13, 2007 theres also a FAQ just beneath titled 'Sendmail functions' which is a little bit too perfect. its says: - What is the path to Sendmail? /usr/sbin/sendmail -fuser\@domainname.co.uk You need to replace -fuser\@domainname.co.uk with a valid mailbox on your account: ie -froot\@yourdomain.co.uk You must leave in the -f and make sure there is a \ before the @ Please note when sending email from a script on your website either the to or from address needs to be a valid email account that is setup, eg root@yourdomain.co.uk does that mean anything to you? Quote Link to comment https://forums.phpfreaks.com/topic/51178-i-need-help-with-a-contact-form-soo-bad-there-must-be-a-saviour-in-my-time-of-n/page/2/#findComment-252323 Share on other sites More sharing options...
Papalex606 Posted May 14, 2007 Author Share Posted May 14, 2007 can anyopne help me? Everything works perfect, i jsut dont receive any emails. Ive checked everything! Any ideas? :'( Quote Link to comment https://forums.phpfreaks.com/topic/51178-i-need-help-with-a-contact-form-soo-bad-there-must-be-a-saviour-in-my-time-of-n/page/2/#findComment-252686 Share on other sites More sharing options...
esukf Posted May 14, 2007 Share Posted May 14, 2007 Since you're on a windows server try adding the following in your script as per streamline.net's faq http://www.streamlinesupport.net/index.php?page=show&id=163&subid=59&catid=7 <?php ini_set("sendmail_from", "email@yourdomain.com"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/51178-i-need-help-with-a-contact-form-soo-bad-there-must-be-a-saviour-in-my-time-of-n/page/2/#findComment-253019 Share on other sites More sharing options...
Papalex606 Posted May 15, 2007 Author Share Posted May 15, 2007 did you mean so the sode reads like this? <?php $your_company = $_GET['company']; $your_name = $_GET['name']; $your_phone = $_GET['phone']; $your_email = $_GET['email']; $your_message = $_GET['message']; $recipient_email = "info@pavelockstudios.com"; $subject = "from " . $your_email; $headers = "From: " . $your_name . " <" . $your_email . ">\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1'; $content = "<html><head><title>Contact letter</title></head><body> "; $content .= "Company: " . $your_company . " "; $content .= "Name: " . $your_name . " "; $content .= "Phone: " . $your_phone . " "; $content .= "E-mail: " . $your_email . " "; $content .= $your_message; $content .= " </body></html>"; mail($recipient_email,$subject,$content,$headers); ini_set("sendmail_from", "info@pavelockstudios.com"); ?> <html> <body bgcolor="#282E2C"> <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold"> Your message was sent. Thank you. </div> </body> </html> <script>resizeTo(300, 300)</script> If so ive jsut tried that, but still nothing in the inbox. I appreciate your help though esukf, any other ideas? Is the code correct? Quote Link to comment https://forums.phpfreaks.com/topic/51178-i-need-help-with-a-contact-form-soo-bad-there-must-be-a-saviour-in-my-time-of-n/page/2/#findComment-253408 Share on other sites More sharing options...
esukf Posted May 15, 2007 Share Posted May 15, 2007 The set_ini line should be before the mail function. <?php //make sure email info@pavelockstudios.com is an email on your server account, since //you had your email as info@darkiconstudios.com before. ini_set("sendmail_from", "info@pavelockstudios.com"); mail($recipient_email,$subject,$content,$headers); ?> Hope it works. Quote Link to comment https://forums.phpfreaks.com/topic/51178-i-need-help-with-a-contact-form-soo-bad-there-must-be-a-saviour-in-my-time-of-n/page/2/#findComment-253414 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.