si existe, estoy utilizando AppServ, de hecho ya cambie el codigo y estoy utilizando el siguiente y dice que si se envia el mensaje pero en verdad no.
<?php
require 'PHPMailer/class.phpmailer.php';
require 'PHPMailer/class.smtp.php';
//Create a new PHPMailer instance
$mail = new PHPMailer;
//Tell PHPMailer to use SMTP
$mail->isSendMail(); //or
//$mail->isSMTP();
//Set the hostname of the mail server
$mail->Host = 'smtp.gmail.com';
//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
$mail->Port = 587;
//Set the encryption system to use - ssl (deprecated) or tls
$mail->SMTPSecure = 'tls';
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
//Username to use for SMTP authentication - use full email address for gmail
$mail->Username = "
[email protected]";
//Password to use for SMTP authentication
$mail->Password = "contrasena";
//Set who the message is to be sent from
$mail->setFrom('
[email protected]', 'Nombre');
//Set who the message is to be sent to
$mail->addAddress('
[email protected]');
//Set the subject line
$mail->Subject = 'PHPMailer GMail SMTP test';
//$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
$mail->Body = '<h1>This is a plain-text message body</h1> Lorem ipsum dolor sit amet, consectetur.';
$mail->IsHTML(true);
//send the message, check for errors
if (!$mail->send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}
?>