Localsunucumdaki domainde kullandıgım takdirde bir sıkıntı olmadan kullanıyorum.
Centos cpanel kurulu trde lokasyonlu makine.

Başka sunucuda olan cpanelli sitenin mail adresi bilgilerini girdigimde hata mesajı alıyorum.
Sizce neden olabilir.

require 'phpmailer/PHPMailerAutoload.php';
$mail = new PHPMailer;

$mail->SMTPDebug = 3;                               // Enable verbose debug output

$mail->isSMTP();                                      // Set mailer to use SMTP
$mail->Host = $smtp_adresi;  // Specify main and backup SMTP servers
$mail->SMTPAuth = true;                               // Enable SMTP authentication
$mail->Username = $eposta;                 // SMTP username
$mail->Password = $sifre;                           // SMTP password
$mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587;                                    // TCP port to connect to

$mail->From = $eposta;
$mail->FromName = 'Site basligi';
$mail->addAddress('test@gidecekdomain.com', 'BBB');     // Add a recipient
$mail->addReplyTo($eposta,  $sirket_bilgi->ad);


$mail->isHTML(true);                                  // Set email format to HTML

$mail->Subject = 'Test';
$mail->Body    = 'Test Mailidir. Mail Adresiniz sisteme tanimlandi.';
$mail->AltBody = 'www.a.com';

if(!$mail->send()) {
    echo 'Hata Mesaji: ' . $mail->ErrorInfo;
    $kaydet = 0;
} else {
    echo 'Test İşleminden geçti';
     $kaydet = 1;
}
Verdiği hata mesajı:

Alıntı
2015-05-27 11:33:55 Connection: opening to mail.siteadresi.com:587, timeout=300, options=array ( ) 2015-05-27 11:34:58 SMTP ERROR: Failed to connect to server: Bağlantıda zaman aşımı (110) 2015-05-27 11:34:58 SMTP connect() failed. https://github.com/PHPMailer/PHPMail...roubleshooting