bilis_money Posted April 10, 2007 Share Posted April 10, 2007 can you something wrong with these codes? <?php if (isset($_POST['Submit'])){ $recepient = "[email protected]"; $subject = "You have Guest! from mydomain.com"; $contents = "First Name: " . $_POST['fname'] . "\n\nLast Name: " . $_POST['lname'] . "\n\nStreet1: " . $_POST['st1'] . "\n\nStreet2: " . $_POST['st2'] . "\n\nCity: " . $_POST['city'] . "\n\nState: " . $_POST['state'] . "\n\nZip code: " . $_POST['zcode'] . "\n\nCountry code: " . $_POST['countcode'] . "\n\nCountry: " . $_POST['country'] . "\n\nPhone number: " . $_POST['pnumber'] . "\n\nE-mail address: " . $_POST['email'] . "\n\nEnquiry: " . $_POST['enquiry']; } $headers = "Reply-to: [email protected]\n"; mail($recepient, $subject, $contents, "From: [email protected]"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/46447-spot-the-not/ Share on other sites More sharing options...
Zaid Posted April 10, 2007 Share Posted April 10, 2007 having looked quickly: you assign $header but you didn't send it with mail() Quote Link to comment https://forums.phpfreaks.com/topic/46447-spot-the-not/#findComment-225946 Share on other sites More sharing options...
kenrbnsn Posted April 10, 2007 Share Posted April 10, 2007 Please give us a hint to your problem. Ken Quote Link to comment https://forums.phpfreaks.com/topic/46447-spot-the-not/#findComment-225947 Share on other sites More sharing options...
bilis_money Posted April 10, 2007 Author Share Posted April 10, 2007 Thanks guys but actually the server is not set to display error messages. That's why i don't know where to look for the specific problem too. But that script is not really working. I wonder why? Quote Link to comment https://forums.phpfreaks.com/topic/46447-spot-the-not/#findComment-225950 Share on other sites More sharing options...
Zaid Posted April 10, 2007 Share Posted April 10, 2007 Thanks guys but actually the server is not set to display error messages. That's why i don't know where to look for the specific problem too. But that script is not really working. I wonder why? check error_php.log file ,if you can't access it then use ini_set (check php manual) to override your server setting, to display errors Quote Link to comment https://forums.phpfreaks.com/topic/46447-spot-the-not/#findComment-225952 Share on other sites More sharing options...
Ninjakreborn Posted April 10, 2007 Share Posted April 10, 2007 This is an uninformational post. You are going to have to detail out your problem, if the mail is not sending it could be multiple things. If it's not properly setting the from header, it could be multiple things. You are going to have to be more specific as far as what is "actually" not happening, or is happening incorrectly. Quote Link to comment https://forums.phpfreaks.com/topic/46447-spot-the-not/#findComment-225965 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.