Estoy enviando emails con la funcion mail() y estoy teniendo algunos problemas.
Configurando el header de esta forma es suficiente? O me está faltando algo más, como limpiar los $_POST o algo por el estilo:
Código PHP:
$headers = "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers .= "Reply-To: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
if(mail("[email protected]", "Email enviado desde la web", "email test" , $headers)
gracias
Saludos