This is my PHP file's code:
<?php
if(isset($_POST['submit'])) {
$to = "[email protected]";
$subject = "Form Virmousile.com";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message: $message\n";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
<html>
<head>
<title>Contact sent successfully!</title>
</head>
<body>
<center>
Your Message Was Sent!
</center>
</body>
</html>
Everything is fine. When I fill in the contact form and press Send, it goes directly to the PHP file as though the message was successfully sent. When I check my email's inbox, I don't find the message.
Does anyone has any idea what could the problem be? Any help would be much appreciated.
Thanks in advance.
<?php
if(isset($_POST['submit'])) {
$to = "[email protected]";
$subject = "Form Virmousile.com";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];
$body = "From: $name_field\n E-Mail: $email_field\n Message: $message\n";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
<html>
<head>
<title>Contact sent successfully!</title>
</head>
<body>
<center>
Your Message Was Sent!
</center>
</body>
</html>
Everything is fine. When I fill in the contact form and press Send, it goes directly to the PHP file as though the message was successfully sent. When I check my email's inbox, I don't find the message.
Does anyone has any idea what could the problem be? Any help would be much appreciated.
Thanks in advance.