Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/06/2012, 09:40
fede0692
 
Fecha de Ingreso: junio-2012
Mensajes: 14
Antigüedad: 12 años, 8 meses
Puntos: 0
[ayuda]error php envio mail

Tengo un formulario .php, en el cual

Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
if (!isset($_POST['email'])) {
?>
  <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
    <label>
      Nombre:
      <input name="nombre" type="text" />
      <br />
    </label>
    <label>
      Teléfono:
      <input name="telefono" type="text" />
    </label>
    <label>
      <br />
      Email:
<input name="email" type="text" />
    </label>
    <label>
      <br />
      Mensaje:
<textarea name="mensaje" rows="6" cols="50"></textarea>
    <br />
    </label>
    <input type="reset" value="Borrar" />
    <input type="submit" value="Enviar" />
  </form>
<?php
}else{
  
$mensaje="Mensaje del formulario de contacto de Thinner";
  
$mensaje.= "\nNombre: "$_POST['nombre'];
  
$mensaje.= "\nEmail: ".$_POST['email'];
  
$mensaje.= "\nTelefono: "$_POST['telefono'];
  
$mensaje.= "\nMensaje: ".$_POST['mensaje'];
  
$destino"[email protected]";
  
$remitente $_POST['email'];
  
$asunto "Mensaje enviado por: ".$_POST['nombre'];
  
mail($destino,$asunto,$mensaje,"FROM: $remitente");
?>
  <p><strong>Mensaje enviado.</strong></p>
<?php
}
?>
</body>
</html>
Y al tocar el ENVIAR me sale:


ESTOY TRABAJANDO CON SERVIDOR IIS, Y VOY A HOSTEARLO YO TAMBIEN.