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. 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 [email protected] does that mean anything to you? 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? :'( 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 protected]"); ?> 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 = "[email protected]"; $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", "[email protected]"); ?> <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? 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 [email protected] is an email on your server account, since //you had your email as [email protected] before. ini_set("sendmail_from", "[email protected]"); mail($recipient_email,$subject,$content,$headers); ?> Hope it works. 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
Archived
This topic is now archived and is closed to further replies.