Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/11/2010, 19:33
armandas
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Dónde tengo el error?(formulario php)

Cita:
Iniciado por bocho0610 Ver Mensaje
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)
Gracias,dodne pone TU EMAIL ?? pongo mi email sinn mas?

Edito: he cambiado lo que has puesto,pero no me llegan los correos..puff

Última edición por armandas; 27/11/2010 a las 19:51