Código PHP:
if(mail($destinatario, $asunto, $texto,$cabeceras)){
mail($email, $asunto, $respuesta,$headers);
echo "<script>alert('Seite wurde hinzugefuegt!'); </script>";
header ("Location: http://www.dominio.com/reservas.php");
}
Ese código me da error en el header, pero el mail me lo envia.
Warning: Cannot modify header information - headers already sent by (output started at /home/cmnghjuw/public_html/formulario.php:146) in /home/cmnghjuw/public_html/formulario.php on line 147
El formulario lo tengo en reservas.php y todo el código del formulario en formulario.php, yo quiero que al darle a enviar se envie el e-mail pero no se vaya de reservas.php.
Un saludo.