Amigos soy nuevo en el foro: necesito ayuda ante este problema, se traba de enviar un correo con phpmailer es un recordatorio de contraseña me funciono en algunos dias atras pero posterior a eso me aparece este error me gustaria poder recibir alguna ayuda de uds. 
 
 
<?php function mailNew($recipient, $asunto, $message)
 
{
 
	$mail = new PHPMailer(true); //Nueva instancia, con las excepciones habilitadas
	$message             = preg_replace('/\\\\/','', $message); //Escapar backslashes
	$mail->IsSMTP();                           // Usamos el metodo SMTP de la clase PHPMailer
	//$mail->Host       = "pop.gmail.com"; // SMTP server
	//$mail->Mailer 		= "pop";
	//$mail->Port       = 995;                    
	//modificado el dia 11-10-2012 a las 17:25 hrs por cacevedo
	$mail->Host       = "smtp.gmail.com"; // SMTP server
	$mail->Mailer 		= "smtp";
	$mail->Port       = 587;                    
 
	$mail->Username   = "[email protected]";     // SMTP server Usuario
	$mail->Password   = "xxxxxxxxx";            // SMTP server password
	$mail->From       = "[email protected]"; //Remitente de Correo
 
	$mail->SMTPSecure = "tls";  
 	$mail->SMTPAuth   = true;
	$mail->FromName   = "TramitesPeruanos"; //Nombre del remitente
 
	$mail->AddAddress($recipient , $recipient);
	$mail->Subject  = $asunto;
	$mail->MsgHTML($message);
	$mail->IsHTML(true); // Enviar como HTML
	//$mail->Send();//Enviar
 
	if(!$mail->Send()) {
	  return "error";
	}
	else 
	{  
		return "ok";
	}
 
	}
 
 
 
?>
 
El error el es siguiente:
 
 
Fatal error: Uncaught exception 'phpmailerException' with message 'SMTP Error: Could not authenticate.' in /home/tramite1/public_html/mail-php/class.phpmailer.php:909 Stack trace: #0 /home/tramite1/public_html/mail-php/class.phpmailer.php(800): PHPMailer->SmtpConnect() #1 /home/tramite1/public_html/mail-php/class.phpmailer.php(663): PHPMailer->SmtpSend('Date: Wed, 12 J...', '--b1_3e44657473...') #2 /home/tramite1/public_html/mail-php/class.phpmailer.php(591): PHPMailer->PostSend() #3 /home/tramite1/public_html/conexiones/abre_coneccion.php(63): PHPMailer->Send() #4 /home/tramite1/public_html/olvidaste_enviar.php(127): mailNew('lda.tito.8@hotm...', 'RECORDATORIO CO...', '? ...') #5 {main} thrown in /home/tramite1/public_html/mail-php/class.phpmailer.php on line 909 
   
 





