Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/07/2009, 23:24
iovan
 
Fecha de Ingreso: septiembre-2007
Ubicación: PyRoot
Mensajes: 1.515
Antigüedad: 17 años, 5 meses
Puntos: 188
Respuesta: no me esta funcionando el formulario de contacto

A mi si me funciono desde mi hosting pero no desde mi localhost.

El problema puede ser que a los 2 nos hace falta la libreria PHPmailer

Aqui te dejo tu codigo, le hise una pequeña modificacion y funciona 100% bien.
Código PHP:
<?php 

                
//Formatendo el Texto
                
$destinatario $_POST['dirigido'];
                
$titulo "Reporte Inicio CC >> INTRANET SIAP";
            
                
$cuerpoMensaje "<b>Nombre        :</b> ".$_POST['nombre']."<br>";
                
$cuerpoMensaje.= "<b>Email        :</b> ".$_POST['email']."<br>";
                
$cuerpoMensaje.= "<b>Telefono    :</b> ".$_POST['telefono']."<br>";
                
$cuerpoMensaje.= "<b>Producto    :</b> ".$_POST['producto']."<br>";
                
$cuerpoMensaje.= "<b>Comentario    :</b> ".$_POST['comentarios']."<br><br>";
                
                        
                
$cuerpoMensaje.= "<a href=\"http://www.zaaavi.cn\" >http://www.za.c/</a><br>";
            
                   
$sheader="From: Contacto ventas Sanavi <[email protected]>\n"
                   
$sheader=$sheader."X-Mailer:PHP/".phpversion()."\n"
                   
$sheader=$sheader."Mime-Version: 1.0\n"
                   
$sheader=$sheader."Content-Type: text/html"
    
                
//Envio de Correo
                
@mail($destinatario$titulo$cuerpoMensaje$sheader);
                
//echo $cuerpoMensaje;
echo "Se ha enviado";
                
//Envio de Correo
                
?> 
<form action="" method="post" name="">
<input type="hidden" name="dirigido" value="[email protected]" />
Nombre: <input type="text" name="nombre" /><br />
Email: <input type="text" name="email" /><br />
telefono: <input type="text" name="telefono" /><br />
producto: <input type="text" name="producto" /><br />
comentarios: <textarea name="comentarios"></textarea>
<input type="submit" value="Enviar">
</form>