want to send Feedback acknowledgment message

Asked By Gopi K
30-Aug-10 06:20 AM
Earn up to 0 extra points for answering this tough question.
Hi Guys,

       i created a application in php, in that i set the feedback form for the visitors,while visitor send the feedback to the admin , i want the coding of  send acknowledgment message to the same visitor mail address. some one helpme

Thanks in Advance.........

  re: want to send Feedback acknowledgment message

Gayathri S replied to Gopi K
01-Sep-10 09:15 AM
Assuming your form is like this:

<form action="submit.php" method="post">
   <!-- other form fields -->
   <input type="text" name="email_id" />
   <!-- other form fields -->
</form>


Now submit.php should have the following code to send acknowledgement mail:

<?php
$mailid = $_POST['email_id'];
if(mail($mailid, "Received your comments (subject)", "<Body of the message>"))
{
   echo "Received successfully!";
}
else
{
   echo "Error in sending acknowledgement mail. See if your mail server is configured properly";
}
?>

  re: want to send Feedback acknowledgment message

wepex replied to Gopi K
21-Feb-11 01:30 PM
i request to get a php code for notification by a recipient to a sender on receipt of a file
Create New Account