Ver Mensaje Individual
  #10 (permalink)  
Antiguo 16/03/2015, 04:57
bernatmartinez
 
Fecha de Ingreso: octubre-2014
Mensajes: 24
Antigüedad: 9 años, 6 meses
Puntos: 0
Respuesta: Problemas PHPMailer en versiones actuales de php

Hola, no entiendo muy bien la pregunta.

Instale desde el terminal PHP 5.4.38 pero seguía dando el mismo problema.

Ahora me he bajado el ultimo phpMailer

con este código:
require 'mail/PHPMailerAutoload.php';

$mail = new PHPMailer;
$mail->SMTPDebug = 3; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.vinosyrecetas.com;'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '*******'; // SMTP username
$mail->Password = '*******'; // SMTP password
$mail->SMTPSecure = "ssl"; // Enable TLS encryption, `ssl` also accepted
$mail->Port = "465"; // TCP port to connect to
$mail->From = '**********';
$mail->FromName = 'AAAAAA';
$mail->addAddress('**********', 'AAAAAA Gmail');
$mail->addReplyTo('**********', 'AAAAAA');
$mail->isHTML(true);
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent';
}

Y me sale este error pero si que se envía

2015-03-16 11:01:55 CLIENT -> SERVER: EHLO www.vinosyrecetas.com 2015-03-16 11:01:55 CLIENT -> SERVER: AUTH CRAM-MD5 2015-03-16 11:01:55 CLIENT -> SERVER: aW5mb0B2aW5vc3lyZWNldGF .....

Pero si que se envía, seguiré haciendo test pero en principio ya funciona, un saludo y gracias!!!