I have a simple mail form that is using the following php code to send the mail:
$subject="Formulário do site";
$nome = stripslashes($nome);
$morada = stripslashes($morada);
$email = stripslashes($email);
$telefone = stripslashes($telefone);
$text = stripslashes($text);
$msg = "
Nome : $nome \n
Morada : $morada \n
Email : $email \n
Telefone : $telefone \n
Mensagem : $text \n";
mail("email@example.com",$subject,$msg,"From: $nome <$email>");
The prob is that this code is giving me the following error after pressing the send button:
"Warning: Cannot modify header information - headers already sent by (output started at /home/vitormjl/public_html/process.php:18) in /home/vitormjl/public_html/process.php on line 19"
Can anyone help please?