Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/11/2010, 19:17
Avatar de bocho0610
bocho0610
 
Fecha de Ingreso: enero-2010
Ubicación: <? echo "Santiago, Chile"; ?>
Mensajes: 341
Antigüedad: 14 años, 4 meses
Puntos: 26
Respuesta: Dónde tengo el error?(formulario php)

te faltan los headers


Código PHP:
Ver original
  1. $destino="[email protected]";
  2. $asunto="comentario";
  3. $desde=$_POST[E-mail];
  4. $comentario=$_POST[Mesagge];
  5. $formato="html";
  6. $headers  = "From: TU NOMBRE <TU EMAIL> \r\n";
  7. $headers .= "Return-Path: <TU EMAIL> \r\n";
  8. $headers .= "Reply-To: TU EMAIL \r\n";
  9. $headers .= "X-Sender: TU EMAIL\r\n";
  10. $headers .= "X-Priority: 3 \r\n";
  11. $headers .= "MIME-Version: 1.0 \r\n";
  12. $headers .= "Content-Transfer-Encoding: 7bit \r\n";
  13.  
  14. if($formato == "html"){
  15. $headers .= "Content-Type: text/html; charset=iso-8859-1 \r\n";  
  16. }else{
  17. $headers .= "Content-Type: text/plain; charset=iso-8859-1 \r\n";}
  18.  
  19. @mail($desde, $asunto, $comentario, $headers)
__________________
Sigueme en Twitter!
Septimoarte.cl <-- Un mundo en cine.

Última edición por bocho0610; 27/11/2010 a las 19:22