Jump to content

Help with confirmation email


akita96th

Recommended Posts

Hi I have a question on  my PHP script im using it in conjunction with a flash form and I want it to send a confirmation when the message is sent..Right now the script only sends the variables Name: Email: Phone: Message: but the text that was typed into the input boxes was not sent anyway here is my script I would appreciate if someone would check it and see if it has any errors.

 

Zane if your out there Hello from daddyO

 

<?PHP

$to = "[email protected]";
$subject = "Flashwrkz Contact Form";
$message = "Name: " . $theName;
$message .= "\nPhone: " . $thePhone;
$message .= "\nEmail: " . $theEmail;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";

$sentOk = mail($to,$subject,$message,$headers);

echo "sentOk=" . $sentOk;

?>

Link to comment
https://forums.phpfreaks.com/topic/131145-help-with-confirmation-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.