SMTP GMAIL-Verbindung

Ich kann keine Verbindung zum SMTP-Google Mail mit PHPMailer.

hier ist der Fehler :

Fehler am Jun 25, 2015 22:54PM - stream_socket_client(): unable to
Verbindung zu smtp.gmail.com:587 (Connection timed out) in
/home/amiroper/public_html/beporsbedoon/app/helpers/phpmailer/smtp.php
auf der Linie 222

und das ist mein code :

$this->_mail->isSMTP();
$this->_mail->Host = "smtp.gmail.com";
$this->_mail->SMTPAuth = true;
$this->_mail->Username = "[email protected]";
$this->_mail->Password = "*********";
$this->_mail->SMTPSecure = "tls";
$this->_mail->Port = "587";
$this->_mail->SMTPDebug = 4;
$this->_mail->From = "AmirOperator";
$this->_mail->FromName = '[email protected]';
$this->_mail->addAddress("[email protected]", "test");
$this->_mail->isHTML(true);
$this->_mail->Subject = 'Registration confirm';
$this->_mail->Body    = 'Thank you for registering to activate your account please click on this link. ".DIR."account/activate/$id/$activasion"';
$this->_mail->AltBody = 'Thank you for registering to activate your account please click on this link. ".DIR."account/activate/$id/$activasion"';

if(!$this->_mail->send()) {
    $data['mailsent'] = false;
} else {
    $data['mailsent'] = true;
}

den php-code ist falsch oder ist diese Verbindung problem

Es ist eine Verbindung problem - Ihr DNS nicht funktioniert.

InformationsquelleAutor amiroperator | 2015-06-25

Schreibe einen Kommentar