Guy01 Posted June 19, 2006 Share Posted June 19, 2006 Can somebody please help me, i am having a problem with my script, not recieving the mail and i am not sure if i ahve made a mistake with my script. Sorry to bother anybody but this is my first time and i am starting to knock my head aginst the wall.here is a sample of the script<?php$sendTo = "guyh@of2minds.co.za";$subject = "Customer Information Questionaire";$headers = "From: " . $_POST["name"] ." ". $_POST["surname"] . "<" . $_POST["email"] .">\r\n";$headers .= "Reply-To: " . $_POST["email"] . "\r\n";$headers .= "Return-path: " . $_POST["email"];$message = "Customer Information:"$message .= "Name:" . $_POST["name"] . "\r\n";$message .= "Surname:" . $_POST["surname"] . "\r\n";$message .= "Cell Number:" . $_POST["cellular"] . "\r\n";$message .= "Address:" . $_POST["address"] . "\r\n";$message .= "Leanght with Provider:" . $_POST["time"] . "\r\n";$message .= "E-mail:" . $_POST["email"] . "\r\n";$message .= "Fax:" . $_POST["fax"] . "\r\n";$message .= "Telephone:" . $_POST["tele"] . "\r\n";$message .= "Cellular Information:"$message .= "Make:" . $_POST["make"] . "\r\n";$message .= "Model:" . $_POST["model"] . "\r\n";$message .= "MMEI #:" . $_POST["mmei"] . "\r\n";$message .= "Phone Age:" . $_POST["phoneage"] . "\r\n";$message .= "Type of Contract:" . $_POST["contract"] . "\r\n";$message .= "3G Enabled:" . $_POST["three"] . "\r\n";$message .= "Customer Intrests:"$message .= "Profession:" . $_POST["profesion"] . "\r\n";$message .= "Sports:" . $_POST["sport"] . "\r\n";$message .= "Hobbies:" . $_POST["hobbies"] . "\r\n";$message .= "Status:" . $_POST["status"] . "\r\n";$message .= "Message:" . $_POST["comments"];mail($sendTo, $subject, $message, $headers);?>Please help me! Quote Link to comment https://forums.phpfreaks.com/topic/12382-please-help-me/ Share on other sites More sharing options...
AV1611 Posted June 19, 2006 Share Posted June 19, 2006 Made a minor change at the end for TS purpose. Also, are you getting errors on screen??? what are the?[!--quoteo(post=385653:date=Jun 19 2006, 10:51 AM:name=Guy01)--][div class=\'quotetop\']QUOTE(Guy01 @ Jun 19 2006, 10:51 AM) [snapback]385653[/snapback][/div][div class=\'quotemain\'][!--quotec--]Can somebody please help me, i am having a problem with my script, not recieving the mail and i am not sure if i ahve made a mistake with my script. Sorry to bother anybody but this is my first time and i am starting to knock my head aginst the wall.here is a sample of the script<?php$sendTo = "guyh@of2minds.co.za";$subject = "Customer Information Questionaire";$headers = "From: " . $_POST["name"] ." ". $_POST["surname"] . "<" . $_POST["email"] .">\r\n";$headers .= "Reply-To: " . $_POST["email"] . "\r\n";$headers .= "Return-path: " . $_POST["email"];$message = "Customer Information:"$message .= "Name:" . $_POST["name"] . "\r\n";$message .= "Surname:" . $_POST["surname"] . "\r\n";$message .= "Cell Number:" . $_POST["cellular"] . "\r\n";$message .= "Address:" . $_POST["address"] . "\r\n";$message .= "Leanght with Provider:" . $_POST["time"] . "\r\n";$message .= "E-mail:" . $_POST["email"] . "\r\n";$message .= "Fax:" . $_POST["fax"] . "\r\n";$message .= "Telephone:" . $_POST["tele"] . "\r\n";$message .= "Cellular Information:"$message .= "Make:" . $_POST["make"] . "\r\n";$message .= "Model:" . $_POST["model"] . "\r\n";$message .= "MMEI #:" . $_POST["mmei"] . "\r\n";$message .= "Phone Age:" . $_POST["phoneage"] . "\r\n";$message .= "Type of Contract:" . $_POST["contract"] . "\r\n";$message .= "3G Enabled:" . $_POST["three"] . "\r\n";$message .= "Customer Intrests:"$message .= "Profession:" . $_POST["profesion"] . "\r\n";$message .= "Sports:" . $_POST["sport"] . "\r\n";$message .= "Hobbies:" . $_POST["hobbies"] . "\r\n";$message .= "Status:" . $_POST["status"] . "\r\n";$message .= "Message:" . $_POST["comments"];$ok=mail($sendTo, $subject, $message, $headers);if($ok) {echo "<center><H2><font color='RED'>THE FILES WERE SUCCESSFULLY SENT!</h2></font>";} else {die("Sorry but the email could not be sent. Please go back and try again!");}?>Please help me![/quote] Quote Link to comment https://forums.phpfreaks.com/topic/12382-please-help-me/#findComment-47324 Share on other sites More sharing options...
Guy01 Posted June 19, 2006 Author Share Posted June 19, 2006 [!--quoteo(post=385655:date=Jun 19 2006, 04:58 PM:name=AV1611)--][div class=\'quotetop\']QUOTE(AV1611 @ Jun 19 2006, 04:58 PM) [snapback]385655[/snapback][/div][div class=\'quotemain\'][!--quotec--]Made a minor change at the end for TS purpose. Also, are you getting errors on screen??? what are the?[/quote]Hi, you can see the sample at www.of2minds.co.za/email.htmli am trying to get a survey page together for a customer, i do not get any errors as i have built the front end in Flash. I have checked all my var's in flash to make sure that i am getting the correct information from my flash page. I recieved one earlier and nothing since then, but i made changes to the script file so i could try to get spacing better for the information coming back via email.Thanks for your help, so glad you are willing to help. Quote Link to comment https://forums.phpfreaks.com/topic/12382-please-help-me/#findComment-47327 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.