<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $to = "sharris@wasps.net.au";
    $subject = "New email from your website";

    // Get the form data
    $text = $_POST["organisation"];
    $text = $_POST["name"];
    $text = $_POST["email"];
    $text = $_POST["phone"];
    $text = $_POST["mobile"];
    $text = $_POST["address"];
    $text = $_POST["website"];

    // You can add more headers or customize as needed
    $headers = "From: webmaster@example.com";

    // Send the email
    mail($to, $subject, $message, $headers);
}
?>
