Location: PHPKode > scripts > Feedback > kbfeedback/kbfeedback/feedback1.php
<html>
<head>

</head>
<body>
<h1>Feedback</h1>


<table border="0" width="100%">
  <tr>
    <td width="100%" valign="top">

    <?php
$dtenow= gmdate("Y-m-d H:i:s" , time() + 19800);
$organisation="Your Organisation Name";
$organisationweb="Your Organisation Web Address";
$organisationeml="Your Email Address";
$recnam="Your Organisation Name";
$receml="Your Email Address";
$sbj="Feedback";

$sndnam = $_REQUEST['sndnam'];
$sndeml = $_REQUEST['sndeml'];
$sndsbj = $_REQUEST['sndsbj'];
$sndmsg = $_REQUEST['sndmsg'];



		
		
		$recmsg =

				"
				You have received a feedback
	 				
				" .

	
			"
				-----------------------------------------------------------\n
			Message Sent to: <$recnam><$receml>

			Subject:    $sndsbj
			Message:    $sndmsg

			Message Sent by: <$sndnam><$sndeml>\n
			-----------------------------------------------------------\n
			" .

			"
			This is an auto generated email sent to you from $organisation\n
				If you are not concerned with this email that kindly delete this message.
	 		Visit at: $organisationweb
	 		For more information mail us at:
	 		$organisationeml\n
	 		"
	 		;
		
		
			$sndmsg =

				"
				You have send a feedback to $organisation
	 				
				" .

	
			"
				-----------------------------------------------------------\n
			Message Sent to: <$recnam><$receml>

			Subject:    $sndsbj
			Message:    $sndmsg

			Message Sent by: <$sndnam><$sndeml>\n
			-----------------------------------------------------------\n
			" .

			"
			This is an auto generated email sent to you from $organisation\n
				If you are not concerned with this email that kindly delete this message.
	 		Visit at: $organisationweb
	 		For more information mail us at:
	 		$organisationeml\n
	 		"
	 		;


			
$recemlsnd=mail($receml, $sbj, $recmsg, "From: \"$sndnam\" <$sndeml>\r\nReply-To: \"$sndnam\" <$sndeml>");

$sndemlsnd=mail($sndeml, $sbj, $sndmsg, "From: \"$organisation\" <$organisationeml>\r\nReply-To: \"$organisation\" <$organisationeml>" );
			
				
				if($recemlsnd)
					{
					
					echo "
			<table border='1'>
			<tr><td colspan='2'>Your feedback</td></tr>
			<tr><td>Subject</td><td>$sbj</td></tr>
			<tr><td colspan='2'>has been sent to</td></tr>
			<tr><td>Email</td><td>$receml</td></tr>
			</table>
						";
	

					}
					
				else
				{
					echo "

			<table border='1'>
			<tr><td colspan='2'>Your feedback</td></tr>
			<tr><td>Subject</td><td>$sbj</td></tr>
			<tr><td colspan='2'>was not sent to</td></tr>
			<tr><td>Email</td><td>$receml</td></tr>
			</table>
						";
				}


?>
    </td>
  </tr>
</table>
</body>
</html>
Return current item: Feedback