I am not sure what I am doing wrong but can't seem to recieve test email for this php form the form is at the bottom of this code snippet

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
    <title>MIAPP</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

    <!-- FAVICON -->
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="icon" href="favicon.ico" type="image/x-icon">

    <meta name="author" content="Multia Labs" />
    <meta name="description" content="" />
    <meta name="keywords"  content="" />

    <!-- GOOGLE FONTS -->
    <link href='http://fonts.googleapis.com/css?family=Raleway:400,700,600,500,300,200,100,800,900' rel='stylesheet' type='text/css'>

    <!-- STYLESHEETS -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="assets/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="assets/css/jquery.fullPage.css" />
    <link rel="stylesheet" type="text/css" href="assets/css/style.css" />

    <!--[if IE]>
        <script type="text/javascript">
             var console = { log: function() {} };
        </script>
    <![endif]-->


</head>
<body>



    <!-- /Preloader -->
    <div class="preloader">
        <div class="status"></div>
    </div>
    <!-- /Preloader -->

<div id="fullpage">

    <!-- HOME -->
    <div class="section align-center" id="section0">

        <div class="heading">
            <h1 class="col-lg-10 align-center"><span class="rotate">We are a digital studio, we design awesome stuff, we create unified experience</span></h1>
            <p>Miapp is an amazing iOS app designed to capture, showcase and track your brightest ideas. The beauty in your hand.</p>
            <h2>Subscribe for updates</h2>

            <!-- SUBSCRIBE FORM -->
            <div class="notify-by-email align-center">
                <div class="row form-notify">
                    <form action="notify-me.php" id="notifyMe" method="POST" class="center-block align-center col-lg-3 col-md-4 col-sm-6 col-xs-6">
                        <div class="input-group">
                          <input type="text" class="form-control email-add" name="email" placeholder="Email Address">
                          <span class="input-group-btn " >
                            <button class="btn btn-default notify-button"><i class="icon-arrow right"><span></span></i></button>
                          </span>
                        </div>
                    </form>
                </div>
            </div>
            <!-- /SUBSCRIBE FORM -->
        </div>
    </div>
    <!-- /HOME -->

    <!-- FEATURES -->
    <div class="section align-center" id="section1">

       <div class="heading">
            <h1>beautiful & intelligent</h1>
            <p>Full of user-centered approach, intelligent interactions and playful features. </p>

        <!-- FEATURES-->
            <div class="align-center features">
                <ul>
                    <li>
                        <div>
                              <span class="text">
                                <img src="assets/img/3d.png"/>
                              </span>
                               <div class="face1"></div>
                              <div class="face2"> </div>
                        </div>
                    <h2 class="align-center">3D Developer<br>
                      <a href="http://nufftalon.artstation.com/">nufftalon.artstation.com</a></h2>
                    </li>
                    <li>
                        <div>
                              <span class="text">
                                        <img src="assets/img/web.png"/>
                              </span>
                               <div class="face1"></div>
                              <div class="face2"> </div>
                        </div>
                    <h2 class="align-center">WebDesigner<br>
                      <a target="_blank" href="http://www.optiview360.com/">optiview360.com</a>                   </h2>
                    </li>
                    <li>
                        <div>
                              <span class="text">
                                <img src="assets/img/logo.png"/>
                              </span>
                               <div class="face1"></div>
                              <div class="face2"> </div>
                        </div>
                    <h2 class="align-center">Logo Designer<br>
                      <a target="_blank" href="http://mdzyn.net/">mdzyn.net</a></h2>
                    </li>
                    <li>
                        <div>
                              <span class="text">
                                <img src="assets/img/video.png"/>
                              </span>
                               <div class="face1"></div>
                              <div class="face2"> </div>
                        </div>

                    <h2 class="align-center">videographer<br>
                      <a target="_blank" href="http://iamjameslewis.com/">iamjameslewis.com</a></h2>
                    </li>
                </ul>
            </div>
            <!-- /FEATURES -->
        </div>

    </div>
    <!-- /FEATURES -->

    <div class="section align-center" id="section2">

        <div class="heading">
            <h1>we’re here</h1>
            <p>Just say “Hello”. We’ll get back to you in business hours.</p>
            <!-- CONTACT FORM -->
<?php
             //show a message if the email form was sent
            if($_GET['e'] =='y')
              {
                 echo "<center style='font-weight:bold'>Your Email Has Been Sent</center>";
              }
        ?>
        <form method="post" action="?e=y">
                  <fieldset class="col-lg-5 col-md-6 col-sm-6 col-xs-12 align-center" id="contact_form">
                <div class="col-lg-6 col-md-6 nopadding-left">
                    <input class="" type="text" name="thename" id="name" placeholder="Name" />
                </div>
                <div class="col-lg-6 col-md-6 nopadding-right">
                    <input class="" type="text" name="theemail" id="email" placeholder="Email" />
                </div>
                <div class="clearfix"></div>
                <div class="col-lg-12 nopadding-left nopadding-right">
                    <textarea name="themessage" id="message" placeholder="Message"></textarea>
                </div>
                <button class="submit_btn" id="submit_btn">Send Message<i class="fa fa-arrow-right"></i></button>
                <div id="result"></div>
          </fieldset>
            </form>

                                      <?php
  //lets send the message
    $thename = $_POST['name'];
    $theemail = $_POST['email'];
    $themessage = $_POST['message'];
    if($themessage !='' && $thename !='' && $theemail !=''){
      $eheaders = "From: $theemail\r\n";
      $eheaders .= "Reply-To: $theemail\r\n";
      $eheaders .= "MIME-Version: 1.0\r\n";
      $eheaders .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
      $emessage ="The below message has been sent from the I Am James Lewis Website<br /><br />";
      $emessage .="Name: $thename <br /><br /> Email: $theemail <br /><br /> $themessage";
      $sendto = "hawktimewebdesign@gmail.com";

      mail("$sendto","$thesubject","$emessage","$eheaders");
    }
?>
        </div>


    </div>
</div>   

<!-- SCRIPTS -->
<script type="text/javascript" src="assets/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="assets/js/jquery-ui-1.10.4.min.js"></script>
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.fullPage.js"></script>
<script type="text/javascript" src="assets/js/notifyMe.js"></script>
<script type="text/javascript" src="assets/js/modernizr.custom.js"></script>
<script type="text/javascript" src="assets/js/jquery.placeholder.js"></script>
<script type="text/javascript" src="assets/js/jquery.simple-text-rotator.js"></script>
<script type="text/javascript" src="assets/js/init.js"></script>

</body>

</html>

First of all: do you get an error, or does the mail simly not arrive?

Second: you don't have to enclose the variables you pass to the mail() function in quotes. So:

mail("$sendto","$thesubject","$emessage","$eheaders");

could/should become:

mail($sendto, $thesubject, $emessage, $eheaders);

Third: your $thesubject variable does not seem to contain a value - it appears not to get set. Did you check this? I don't know if it's required to have it set, but well, you could try at the least if it makes a difference :).

Thanks I got it working

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.