Colleagues.
I'm trying to send an email authenticated by PHPMailer using GMail this way:
include("PHPMailer/class.phpmailer.php");
require('phpmailer/PHPMailerAutoload.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 1;
$mail->SMTPAuth = true;
$mail -> SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = 587;
$mail->Username = '[email protected]';
$mail->Password = 'senhadoemail';
but you're giving this error:
2016-04-30 18:24:54 SMTP ERROR: Failed to connect to server: (0) 2016-04-30 18:24:54 SMTP connect () failed.
Someone if SMTP is the same?