PHP-Mailer-Fehler: Nachricht konnte nicht gesendet werden.Mailer Error: SMTP connect() failed

Hier ist mein code:

require 'phpmailertesting/PHPMailerAutoload.php';

$mail = new PHPMailer;

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

$mail->isSMTP();                                      //Set mailer to use SMTP
$mail->Host = 'send.one.com';  //Specify main and backup SMTP servers
$mail->SMTPAuth = true;                               //Enable SMTP authentication
$mail->Username = 'myemailhidden';                 //SMTP username
$mail->Password = 'mypasswordhidden';                           //SMTP password
$mail->SMTPSecure = 'ssl';                            //Enable TLS encryption, `ssl` also     accepted
$mail->Port = 465;                                    //TCP port to connect to

$mail->From = 'myemailhidden';
$mail->FromName = 'My Name';
$mail->addAddress('[email protected]');               //Name is optional

$mail->addCC('[email protected]');
$mail->addBCC('[email protected]');

//$mail->addAttachment('/var/tmp/file.tar.gz');         //Add attachments
//$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    //Optional name
$mail->isHTML(true);                                  //Set email format to HTML

$mail->Subject = 'Here is the subject';
$mail->Body    = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
    echo 'Message has been sent';
}

Ich habe versucht, die änderung der port und die Art der sicheren Verbindung "TLS" und "SSL" und nichts. Ive blickte auf die Antworten bereits, und keiner von Ihnen, es zu lösen. Keine Antworten? Dank

Habe ich aktiviert die SMTP-debugger und das ist, was Sie sagte, "Verbindung: öffnen, um ssl://- senden.ein.com:465, t=300, opt=array ( ) 2014-12-15 15:46:40 SMTP-FEHLER: Failed to connect to server: Connection timed out (110) 2014-12-15 15:46:40 SMTP connect() failed"

telnet send.one.com 465 für mich funktioniert. Nehmen Sie die $mail->SMTPSecure Linie zusammen und sehen, ob das funktioniert?
Habe es versucht. Noch immer nicht mit gleichen Fehler 🙁
Wer ist Ihr web-host? Es kann einige ausgehende IPTables Regeln verhindern, dass Sie von der Kommunikation aus port 465.
one.com. Ich werde versuchen, mit meinem google-Konto. sehen, ob das funktioniert 🙂
Es ist Ihre Art zu sagen, dass Sie brauchen, um einen besseren ISP.

InformationsquelleAutor | 2014-12-15

Schreibe einen Kommentar