Tema: Email
Ver Mensaje Individual
  #8 (permalink)  
Antiguo 01/07/2013, 12:37
ofertasdiairias
 
Fecha de Ingreso: junio-2011
Mensajes: 39
Antigüedad: 13 años, 9 meses
Puntos: 2
Respuesta: Email

hola si alguien me puede ayudar?

tengo este script : el cual se manda solo al ingresar al sitio?


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

gracias!!!

Última edición por ofertasdiairias; 01/07/2013 a las 12:42