Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Set properties
- $subject = "Booking Form Submission"; // Enter a subject for your email.
- // Set the web address to forward the user to when the mail is successfully sent.
- $url = "success.html";
- // Send the email, you don't need to change anything below this line.
- $sent = mail($to, $subject, $_POST["message"], "From: " . $_POST["email"], "-f" . $_POST["email"], "Telephone:" . $_POST["tel"], "Payment Method:". $_POST["payment"], "Payment Address:" . $_POST["address"], "Purchase Order Number:" . $_POST["pono"], "No. of Delegates:" . $_POST["delno"], "Residential?:" . $_POST["residential"], "Exam?:" . $_POST["exam"], "Total Cost:" . $_POST["total_cost"]);
- // See if mail was sent
- if($sent) {
- // Email was sent successfully. Note that all we can see is that the mail was sent
- // from the server, but we cannot determine if it arrived at it's destination.
- header("Location: " . $url);
- } else {
- // Mail was not sent
- die("Your email has not been sent.");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment