Merhaba;
PhpMailer ile mail göndermede sıkıntı yaşıyorum. Bununla ilgili şimdiden yardımlarınızı bekliyorum.
Kullandığım kodlar ve aldığım hata mesajları aşağıdadır.
Hosting php sürümü: 7.2
require ('../../vendor/autoload.php');
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 1;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'tls';
$mail->Host = "mail.deneme.xyz";
$mail->Port = 587;
$mail->IsHTML(true);
$mail->SetLanguage("tr", "../../PHPMailer/language");
$mail->CharSet ="utf-8";
$mail->Username = "bilgi@deneme.xyz ";
$mail->Password = "password";
$mail->SetFrom("bilgi@deneme.xyz", "bilgi@deneme.xyz");
$mail->AddAddress($eposta);
$mail->Subject = "Örnek Mail Başlığı";
$mail->Body = 'deneme maill ';
$mail->send(); Aldığım Hatalar:
Warning: stream_select() has been disabled for security reasons in
/home/sitemi/public_html/yonetici/php/vendor/phpmailer/phpmailer/src/SMTP.php on line
1125
2020-01-27 12:52:00 CLIENT -> SERVER: EHLO deneme.xyz
Warning: stream_select() has been disabled for security reasons in
/home/sitemi/public_html/yonetici/php/vendor/phpmailer/phpmailer/src/SMTP.php on line
1125
2020-01-27 12:52:00 SMTP ERROR: EHLO command failed:
2020-01-27 12:52:00 CLIENT -> SERVER: HELO deneme.xyz
Warning: stream_select() has been disabled for security reasons in
/home/sitemi/public_html/yonetici/php/vendor/phpmailer/phpmailer/src/SMTP.php on line
1125
2020-01-27 12:52:00 SMTP ERROR: HELO command failed:
2020-01-27 12:52:00 CLIENT -> SERVER: STARTTLS
Warning: stream_select() has been disabled for security reasons in
/home/sitemi/public_html/yonetici/php/vendor/phpmailer/phpmailer/src/SMTP.php on line
1125
2020-01-27 12:52:00 SMTP ERROR: STARTTLS command failed:
SMTP Error: Could not connect to SMTP host.
2020-01-27 12:52:00 CLIENT -> SERVER: QUIT
Warning: stream_select() has been disabled for security reasons in
/home/sitemi/public_html/yonetici/php/vendor/phpmailer/phpmailer/src/SMTP.php on line
1125
2020-01-27 12:52:00 SMTP ERROR: QUIT command failed:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting