I've looked through a lot of pages to find an answer for my problem. But I can't figure out why my form isn't working. 
I tried different versions of codes from premade examples but I can't get it to work. 

This is my php above my form

```
<?php
    $name = $_POST['name'];
    $from = $_POST['email'];
    $subject = $_POST['subject'];
    $message = $_POST['message']; 
    $to = 'me@email.com'; 

    $body = "From: $name\n E-Mail: $email\n Message:\n $message";

    if ($_POST['submit']) {
        if (mail ($to, $subject, $body, $email)) { 
            echo '<p style="color: #27ae60;">Your message has been sent!</p>';
        } else { 
            echo '<p style="color: #c0392b;">Something went wrong, go back and try again!</p>'; 
        }
    }
?>

```

and this is my form

```
<form class="contact-form" method="post" action="contact.php">

    <label>Name</label>
    <input name="name" placeholder="Your Name">

    <label>Email</label>
    <input name="email" type="email" placeholder="Your Email">

    <label>Subject</label>
    <input name="subject" placeholder="Your Subject">

    <label>Message</label>
    <textarea class="contact-form-message" name="message" placeholder="Your Message"></textarea>

    <input id="submit" name="submit" type="submit" value="Send">

</form>

```

I've only changed my email in this example here the rest is the same. I'm testing this live on a modern server with php 5+ support

Basicly everything works fine except that I don't get an email. 
I can't find out how to make it work sadly. Any ideas would be cool :/ 

Edit: GOD DAMNIT IM A TOTAL IDIOT

Gmail Spam filter is strong in this one.