|
Feedback
|
if(isset($_REQUEST['submit'])){
//The reciever's email address
$ToEmail = 'dorcus.maponya@sita.co.za';
//Subject of the email
$EmailSubject = 'Feedback from the user ';
//The sender's email address
$mailheader = "From: ".$_REQUEST["email"]."\r\n";
//Senders email for responses
$mailheader .= "Reply-To: ".$_REQUEST["email"]."\r\n";
//Send email as the HTML format
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* The body of the message being sent
(n12br is a function for making the comment to start in a new line) */
$MESSAGE_BODY = "Name: ".$_REQUEST["name"]." ";
$MESSAGE_BODY .= "Email: ".$_REQUEST["email"]." ";
$MESSAGE_BODY .= "Comment: ".nl2br($_REQUEST["comment"])." ";
//Function mail() for sending the form entries to the relevant place...
mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");
echo "Thank you, you comment has been sent. ";
}else{
?>
}//end if
?>
|
|
News & Updates
|