I am new in PHP programming. I have found one contact form tutorial, but it was not working. I don't know how can i solve this issue because i think there is no syntax error. I am using WAMP server to connect PHP.

Here is the PHP code

```
<?php

if (isset($_POST['contact_name']) && isset($_POST['contact_email']) && isset($_POST['contact_text'])) {
        $contact_name = $_POST['contact_name'];
        $contact_email = $_POST['contact_email'];
        $contact_text = $_POST['contact_text'];

        if (!empty($contact_name) && !empty($contact_email) && !empty($contact_text)) {
            $to = 'name@domain.com';
            $subject = 'Custom Contact Form';
            $body = $contact_name."\n".$contact_text;
            $headers ='From: '.$contact_email;

            if (@mail($to, $subject, $body, $headers)) {
                echo 'Your form has been submitted. We\'ll contact you shortly.';
                } else {
                echo 'There was an error';
            }

        }else {
            echo 'All fields are required.';
        }
}

?>

```

and here is the html code:

```
<form action="index.php" method="POST">
        Name: <br><input type ="text" name="contact_name"><br><br>
        Email address: <br><input type="text" name="contact_email"><br><br>
        Message:<br>
        <textarea name="contact_text" rows="6" cols="30"></textarea><br><br>
        <input type="submit" value="Send">
</form>

```

Please help.