I made a php contact form. It looks like everything is right but it simply won’t send the email like it is supposed to. I’m not sure what’s wrong. Any insights would be very helpful. TY.
[code]<?php
$name = $_POST[‘name’];
$email = $_POST[‘email’];
$comments = $_POST[‘comments’];
$to = "[email protected]";
$subject = “website email”;
mail ($to, $subject, $email, $comments, "From: " . $name);
echo “Your message has been sent”;
?>[/code]