Witam chcę zrobić prosty formularz kontaktowy niby wszystko się dobrze wysyła ale wiadomości nie dostaję (dobry email jest na pewno, przeszukałem wszystkie foldery). Jakieś pomysły co może być tego przyczyną ?
<?php
if(isset($_POST['submit'])){
$to = "[email protected]";
$from = $_POST['mail'];
$subject = $_POST['subject'];
$msg = $_POST['msg'];
$headers = "From: $from";
mail($to,$subject,$msg,$headers);
header("Location: index.php?send");
}
?>
<!DOCTYPE html>
<head>
<title>Form submission</title>
</head>
<body>
<form method="POST" action="">
<input type="email" name="mail" required>
<input type="text" name="subject" required>
<textarea name="msg" id="" cols="30" rows="10" required></textarea>
<input type="submit" value="Wyslij">
</form>
</body>
</html>