La forma de contacto de mi sitio web (http://www.eoran.com/es/contacto.php) tiene en el action este php: http://www.eoran.com/send.php que estaba funcionando súper bien desde hace bastante tiempo... pero la última vez que lo probé no funcionó!! No sé por qué, si no la he tocado en mucho tiempo!
Esto es lo que sale:
Warning: mail() has been disabled for security reasons in /user/eoran/public_html/send.php on line 18
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /user/eoran/public_html/send.php on line 19
Warning: include(http://www.eoran.com/es/contacto.php?id=confirmacion) [function.include]: failed to open stream: no suitable wrapper could be found in /user/eoran/public_html/send.php on line 19
Warning: include() [function.include]: Failed opening 'http://www.eoran.com/es/contacto.php?id=confirmacion' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /user/eoran/public_html/send.php on line 19
Y esto es el send.php:
Código PHP:
<?php
if(isset($_POST["nombre"]) && isset($_POST["asunto"]) && isset($_POST["email"]) && isset($_POST["mensaje"]) ){
$fecha = date("D-M-y H:i");
$mymail = "[email protected]";
$subject = $_POST["asunto"]."\n\n";
$contenido .= "Nombre: ".$_POST["nombre"]."\n";
$contenido .= "Lugar: ".$_POST["lugar"]."\n";
$contenido .= "Telefono: ".$_POST["telefono"]."\n";
$contenido .= "Dominio: ".$_POST["dominio"]."\n";
$contenido .= "Alojamiento: ".$_POST["alojamiento"]."\n";
$contenido .= "Diseno: ".$_POST["diseno"]."\n";
$contenido .= "Mensaje: ".$_POST["mensaje"]."\n";
$contenido .= "Fecha: ".$fecha;
$header = "From:".$_POST["email"]."\nReply-To:".$_POST["email"]."\n";
$header .= "X-Mailer:PHP/".phpversion()."\n";
$header .= "Mime-Version: 1.0\n";
$header .= "Content-type: text/plain";
mail($mymail, $subject, utf8_decode($contenido) ,$header);
include "http://www.eoran.com/es/contacto.php?id=confirmacion";
}
?>
Muchas gracias!