Tema: Email
Ver Mensaje Individual
  #10 (permalink)  
Antiguo 01/07/2013, 17:14
ofertasdiarias
 
Fecha de Ingreso: marzo-2011
Mensajes: 115
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Email

Muchas gracias..

es como dicen el que sabe sabe y el que no aprende jeje

este es el codigo por si le sirve a alguien
Código PHP:
Ver original
  1. <?php
  2.  
  3.  
  4. if(isset ($_POST['nombre'])&& !empty ($_POST['nombre'])&&
  5.    isset ($_POST['detalle'])&& !empty ($_POST['detalle'])&&
  6.    isset ($_POST['correos'])&& !empty ($_POST['correos']))
  7.    {
  8.  
  9. $nombre = $row_comentario['nombre']; //senders name
  10. $email = $_POST['correos']; //senders e-mail adress
  11. $desde = $row_formulario['email']; //recipient
  12. $asunto = "Tienes un mail..."; //mail body
  13. $detalle = $_POST['detalle']; //subject
  14. $header = "From: [email protected] ". $nombre . " <" . $email . ">\r\n"; //optional headerfields
  15.    }
  16. mail($desde, $asunto, $detalle, $header); //mail command :)
  17. ?>