Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/04/2010, 11:03
Avatar de dyegox
dyegox
 
Fecha de Ingreso: enero-2008
Mensajes: 173
Antigüedad: 17 años, 1 mes
Puntos: 7
Respuesta: PHPMailer... no entiendo por qué funciona

yo uso actualmente este codigo y me funciona perfecto..

Código PHP:
Ver original
  1. $mail             = new PHPMailer();
  2.  
  3.     $mail->IsSMTP();
  4.     $mail->SMTPAuth   = true;
  5.     $mail->SMTPSecure = "ssl";
  6.     $mail->Host       = "smtp.gmail.com";
  7.     $mail->Port       = 465;
  8.  
  9.     $mail->Username = '[email protected]';
  10.     $mail->Password = 'CONTRASEÑA';
  11.  
  12.     $mail->From       = "[email protected]";
  13.     $mail->FromName   = "TU NOMBRE";
  14.     $mail->Subject    = "SUBJECT";
  15.     $mail->Body       = "MENSAJE";
  16.  
  17.     $mail->AddAddress("[email protected]", "NOMBRE DE DESTINATARIO");
  18.  
  19.     $mail->Send();