Merhabalar, yaklaşık 6 saattir bu saçma sorun ile uğraşıyorum :mad: çözümünü bilen varsa lütfen yardımcı olsun :cry:

Hata kodlarım:

2018-10-24 19:28:10 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2018-10-24 19:28:10 Connection: opened
2018-10-24 19:28:10 SERVER -> CLIENT:
2018-10-24 19:28:10 CLIENT -> SERVER: EHLO nzappstudio.com
2018-10-24 19:28:10 SERVER -> CLIENT:
2018-10-24 19:28:10 SMTP ERROR: EHLO command failed:
2018-10-24 19:28:10 CLIENT -> SERVER: HELO nzappstudio.com
2018-10-24 19:28:10 SERVER -> CLIENT:
2018-10-24 19:28:10 SMTP ERROR: HELO command failed:
SMTP Error: Could not authenticate.
2018-10-24 19:28:10 CLIENT -> SERVER: QUIT
2018-10-24 19:28:10 SERVER -> CLIENT:
2018-10-24 19:28:10 SMTP ERROR: QUIT command failed:
2018-10-24 19:28:10 Connection: closed
SMTP Error: Could not authenticate.
Error: SMTP Error: Could not authenticate.



Mail kodlarım:

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;


require 'vendor/autoload.php';



$mail = new PHPMailer(true);
try {
/*
$adsoyad=$_POST["adsoyad"];
$telefon=$_POST["telefon"];
$maili=$_POST["mail"];
$aciklama=$_POST["aciklama"];
*/

$mail->isSMTP();
$mail->SMTPDebug = 3;
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = 'xxx@gmail.com';
$mail->Password = 'sifre';
$mail->SMTPSecure = 'ssl';
$mail->Port = 465;


$mail->setFrom('xxx@gmail.com', 'Deneme');
$mail->addAddress('xxx@gmail.com', 'Deneme');


$mail->isHTML(true);

$content = '

Hangi denemeee : denemeeee


';


$mail->Subject = 'Bilgi Maili';
$mail->Body = $content;

$mail->send();

echo "ok";
} catch (Exception $e) {
echo 'Error: ', $mail->ErrorInfo;
}