Ver Mensaje Individual
  #7 (permalink)  
Antiguo 08/06/2011, 03:34
Avatar de historiasdemaria
historiasdemaria
 
Fecha de Ingreso: septiembre-2010
Ubicación: www
Mensajes: 433
Antigüedad: 13 años, 7 meses
Puntos: 54
Respuesta: Envío automático de un email cuando alguien visita mi web

Entonces utiliza la libreria phpmailer:

http://phpmailer.worxware.com/

Código PHP:
Ver original
  1. require("class.phpmailer.php");
  2.  
  3.  
  4. $mail = new PHPMailer();
  5. $mail->IsSMTP(); // telling the class to use SMTP
  6. $mail->SMTPAuth = true;     // turn on SMTP authentication
  7. $mail->Host = "smtp.yahoo.com"; // SMTP server
  8. $mail->Username = "user_name";
  9. $mail->Password = "pass";
  10.  
  11. // etc..


A ver :)