//Tell PHPMailer to use SMTP
$mail->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 2;
//Set the hostname of the mail server
$mail->Host = 'mail.example.com';
//Set the SMTP port number - likely to be 25, 465 or 587
$mail->Port = 25;
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
//Username to use for SMTP authentication
$mail->Username = 'yourname@example.com';
//Password to use for SMTP authentication
$mail->Password = 'yourpassword';
Kilit kısım burada, ki sizin de SMTP ayarların doğru gözüküyor. Acaba sunucu tarafından sağlanan SMTP adresinde mi hata var?
Örnek olarak, çoğu sağlayıcı sana domain adınla smtp adresi sunar, ama aslında bunlar malumun maske adreslerdir. Güveli sunucularda da bunlarla mail gönderiminde değişik hatalar alabilirsin.
Kolay gelsin.