SMTP-Fehler: Konnte keine Verbindung zum SMTP-host

Ich habe diesen code, und alle Werke auch in meinem lokalen server. Die E-Mail gesendet wird, ohne jedes problem.

Aber nun gebe ich den Inhalt auf den webserver, und ich bekomme diese Fehlermeldung...

SMTP Error: Could not connect to SMTP host.

SSL aktivieren in den server..richtig? also, was ist das problem?
SMTP-Fehler: Konnte keine Verbindung zum SMTP-host

            $mail = new PHPMailer();
            $mail->IsSMTP();
            $mail->SMTPAuth   = true;                  //enable SMTP authentication
            $mail->SMTPSecure = "ssl";                 //sets the prefix to the servier
            $mail->Host       = "smtp.gmail.com";      //sets GMAIL as the SMTP server
            $mail->Port       = 465;                   //set the SMTP port
            $mail->Username   = "dnteiro"; //GMAIL username
            $mail->Password   = "xxx";      //GMAIL password
Und deine firewall lässt verbindungen von außerhalb auf port 465?
der server läuft die php-code.
great china firewall natürlich.
Wo haben die Kommentare gehen..

InformationsquelleAutor anvd | 2011-06-01

Schreibe einen Kommentar