Contact form not sending e-mails

cptrainer01

New Member
I'm not receiving e-mails from this contact form. I looked it over and compared it to other forms. I don't know what the problem is.


HTML:

<!--BACKGROUND IMG-->
<div style="background-image:url(http://storyboardgroup.com/wp-content/uploads/2013/09/map1.jpg);
background-repeat:no-repeat;
background-attachment:scroll;
overflow:scroll;
width:170px;
height:100px;
line-height:2em;">


<!--Yellow Bar-->
<div class="yellowBarSub">
<div class="row">
<div class="twelve columns">
<div class="taglineSub">
<h1><strong>CONTACT US</strong></h1>
</div>
</div>
</div>
</div>
<!--Page Content-->
<div class="contactMap">
<div class="row">
<div class="twelve columns">
<div class="contactIntro">
<h2>Now it's your turn - We love good ideas, big challenges and excited clients.</h2>
<div class="number">
<h3 class="num1"><strong>View</strong></a> some of the work we've created for clients</h3>
<h3 class="num2"><a href="http://storyboardgroup.com/blog/approach/"><strong>Learn</strong></a> how we will approach your project</h3>
<h3 class="num3">Whether your project is big or small, tell us about it below:</h3>
</div>
</div>
</div>
<!--Steps-->
<!--Contact Form-->
<div class="five columns contactForm">
<div class="contactInfo">

<ul style="list-style: none;">
<li>STORYBOARD MEDIA GROUP</li>
<li>PHONE : (646) 627-7500</li>
<li><a href="mailto:[email protected]">[email protected]</a></li>
<li>NEW YORK • NEW JERSEY<br>
CONNECTICUT • PENNSYLVANIA</li>
</ul>
</div>
<div class="contactForm">
<form action="/wp-content/themes/StoryboardThree/sendemail.php" method="post">
<p>Fields marked with a * are mandatory.</p>
<div><label for="form1_name">Full Name*</label> <input id="form1_name" type="text" required="required" name="name"></div>
<div><label for="form1_company">Company</label> <input id="form1_company" type="text" name="company"></div>
<div><label for="form1_url">Website URL</label> <input id="form1_url" type="text" name="url"></div>
<div><label for="form1_phone">Phone Number</label> <input id="form1_phone" type="text" name="phone"></div>
<div><label for="form1_email">Email*</label> <input id="form1_email" type="email" required="required" placeholder="[email protected]" name="email"></div>

<div><label for="form1_subject">Subject</label>
<select type="dropdown">
<option value="Select a subject">Select a subject</option>
<option value="Tell Us About Your Project">Tell Us About Your Project</option>
<option value="Join our Team">Join our Team</option>
<option value="Freelance with Us">Freelance with Us</option>
<option value="Other">Other</option>
</select>
</div>
<div><label for="form1_message">Message*</label>
<textarea id="form1_message" required="required" rows="4" cols="30" name="message"></textarea></div>
<input type="submit" name="submit" id="submit" class="buttoncontact" value="Submit" />
</div>
</form>

</div>
</div>
<div class="seven columns"></div>
</div>
</div>
</div>


PHP:
<?php

$name = $_POST['form1_name'];
$company = $_POST['form1_company']; "New Message From Your Website";
$website = $_POST['form1_url'];
$phone = $_POST['form1_phone'];
$email = $_POST['form1_email'];
$subject = $_POST['form1_subject'];
$message = $_POST['form1_message'];
$submit = $_POST['submit'];
$mail_to = '[email protected]';

// Construct email headers $headers = 'From: ' . $mail_from . "\r\n"; $headers .= 'Reply-To: ' . $mail_from . "\r\n"; $mail_sent = mail($mail_to, $subject, $body_message, $headers); if ($mail_sent == true){ ?>
<script language="javascript" type="text/javascript"> window.location = '/contactus.html'; </script>

}
?>
 
Top