I have been trying to get my contact form working but I just cant. No error message or anything that could give me a lead. Here are my three parts:

```
<div class="contact-form">
<h3>Contact Info</h3>

<address>
<strong>MY WEBSITE</strong>
</address>

<form id="main-contact-form" name="contact-form" method="post" action="sendemail.php">
<div class="form-group">
<input type="text" name="contactname" class="form-control" placeholder="Name" required>
</div>

<div class="form-group">
<input type="email" name="email" class="form-control" placeholder="Email" required>
</div>
<div class="form-group">
<input type="phone" name="phone" class="form-control" placeholder="Phone#" required>
</div>

<div class="form-group">

<select name="interest">
<option value="choose" selected="selected" data-skip="1">Choose your interest</option>
<option value="help">Help</option>
<option value="naturalproducts">Natural Products</option>
<option value="other">Other</option>

</select>

</div>
<div class="form-group">
<textarea name="message" class="form-control" rows="5" placeholder="Brief Message" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Send Message</button>
</form>
</div>

```

My sendemail.php goes like this:

```
<?php
$contactname       = @trim(stripslashes($_POST['contactname'])); 
$from              = @trim(stripslashes($_POST['email'])); 
$phone             = @trim(stripslashes($_POST['phone'])); 
$selected          = @trim(stripslashes($_POST['selected'])); 
$message    = @trim(stripslashes($_POST['message'])); 
$to         = 'info@mywebsite.com';//replace with your email

$headers   = array();
$headers[] = "MIME-Version: 1.0";
$headers[] = "Content-type: text/plain; charset=iso-8859-1";
$headers[] = "From: {$name} <{$from}>";
$headers[] = "Reply-To: <{$from}>";
$headers[] = "Subject: {$subject}";
$headers[] = "X-Mailer: PHP/".phpversion();

mail($to, $subject, $message, $headers);

die;

```

Last, the javascript with the message goes like this:

```
// Contact form
var form = $('#main-contact-form');
form.submit(function(event){
    event.preventDefault();
    var form_status = $('<div class="form_status"></div>');
    $.ajax({
        url: $(this).attr('action'),
        beforeSend: function(){
            form.prepend( form_status.html('<p><i class="fa fa-spinner fa-spin"></i> Email is sending...</p>').fadeIn() );
        }
    }).done(function(data){
        form_status.html('<p class="text-success">Thank you for contacting us.</p>').delay(3000).fadeOut();
    });
});

```