“;
exit;
}

// prepare email body text
$Body = “”;
$Body .= “\n”;
$Body .= “Name: “;
$Body .= $Name;
$Body .= “\n”;
$Body .= “\n”;
$Body .= “Email: “;
$Body .= $Email;
$Body .= “\n”;
$Body .= “\n”;
$Body .= “Mobile Number: “;
$Body .= $Mobile;
$Body .= “\n”;
$Body .= “\n”;
$Body .= “Course Name: “;
$Body .= $Message;
$Body .= “\n”;
$Body .= “\n”;
$Body .= “Ip Address: “;
$Body .= $Ipaddress;
$Body .= “\n”;
$Body .= “\n”;

// send email
$success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>“);

// redirect to success page
if ($success){
print ““;
}
else{
print ““;
}
?>