Buenas a todos, ya he mandado mails otras veces en php, pero ahora no se en que estoy fallando que no se manda. Dejo el form del html y el codigo php.
Código: html5
correof.php
Código: php
A ver si saben porque es, porque ando loco.
<form action="correof.php">
<input name="correof">
<button type="submit">Enviar</button>
</form>correof.php
<?php
$correoreceptor = trim($_POST['correof']);
$asunto = "Prueba";
$mensaje = "Prueba";
mail($correoreceptor, $asunto, $mensaje);
header('Location: xxxxxxxxxxxxxx');
?>
A ver si saben porque es, porque ando loco.



