Jump to content


Photo

PLEASE HELP ME


  • Please log in to reply
2 replies to this topic

#1 Guy01

Guy01
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 19 June 2006 - 02:51 PM

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!


#2 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 19 June 2006 - 02:58 PM

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) View Post[/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]


#3 Guy01

Guy01
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 19 June 2006 - 03:06 PM

[!--quoteo(post=385655:date=Jun 19 2006, 04:58 PM:name=AV1611)--][div class=\'quotetop\']QUOTE(AV1611 @ Jun 19 2006, 04:58 PM) View Post[/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.html

i 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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users