PHP Email form not sending. Can someone look at my code to see if they notice something.
Below is the html form in my index.html
<form class= "contact-form" action="php/send.php" method="post">
<input type="text" name="subject" placeholder="Subject" required />
<input type="email" name="email" type= "email" placeholder="Email" required />
<textarea name="message" placeholder="Message" required></textarea>
<input type="submit" name "submit" value"Send" class="sub-btn">
</form>
Below is my php code to send
<?php
if(isset($_POST['submit'])){
$subject = $_POST['subject'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = 'myemail@gmail.com';
if(mail($to,$subject,$message)){
echo "Sent Successfully! We will contact you shortly!";
}
else
{
echo "Something went wrong!";
}
}
?>