Jump to content

reply email for this form


harshadmethrath

Recommended Posts

I want to be able to reply to the email of the sender ( of the form )

 

heres the codes

<?php

 

$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

 

// Checkbox handling

$field_1_opts = $_POST['field_1'][0].",". $_POST['field_1'][1];

 

mail("harshad@madiganpratt.com","Invitation - Form submission","Form data:

 

rooms: $field_1_opts

First Name: " . $_POST['fname'] . "

Last Name: " . $_POST['lname'] . "

Your Email: " . $_POST['email'] . " 

Phone Number: " . $_POST['pnumber'] . "

Request your arrival date: " . $_POST['field_2'] . "

Request your departure date: " . $_POST['field_3'] . "

Please send me an ownership package: " . $_POST['field_4'] . "

 

",$headers); include ("confirm.html");

 

?>

Link to comment
Share on other sites

Are you saying that when you receive the email sent by this code, you want to be able to click the REPLY button and send a reply to the email address entered on the form by the user?  If so, you need to add a "Reply-To" header:

 

$headers .= 'Reply-To: ' . $_POST['email'] . "\r\n";

 

You really need to sanitize the user entries through. Especially any that you put in the headers.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.