Can anyone help me with an error I'm having with a form ....
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>enviando E-Mail</title>
</head>
<body>
<?php
$nome=$_POST['nome'];
$email=$_POST['email'];
$assunto=$_POST['assunto'];
$mensagem=$_POST['mensagem'];
?>
<?php
$to = "[email protected]";
$subject = "$assunto";
$message = "<strong>Nome:</strong> $nome<br /><br /><strong>E-Mail:</strong> $email<br /><br /><strong>Assunto:</strong> $assunto<br /><br /><strong>Mensagem</strong> $mensagem<br /><br />";
$header = "MINE-Version: 1.0\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
$header .= "From: $email\n";
mail($to, $subject, $message, $header);
echo "Mensagem enviada com sucesso";
?>
</body>
</html>
When you press the Send button, the message is sent successfully, but you do not send the email :( What can be?