Guten Tag zusammen
Ich habe ein Problem mit dem PHPMailer. Ich habe zu testzwecken immer mein web.de account genutzt. Dort hat alles Prima funktioniert.
Hier der Quellcodeauszug:
$mail = new PHPMailer();
$mail->IsSMTP(); //Versand über SMTP festlegen
$mail->Host = "smtp.web.de"; //SMTP-Server setzen
$mail->SMTPAuth = true; //Authentifizierung aktivieren
$mail->Username = "Meinename@web.de"; // SMTP Benutzername
$mail->Password = "meinPasswort"; // SMTP Passwort
//Absenderadresse der Email setzen
$mail->From = "MeinName@web.de";
//Name des Abenders setzen
$mail->FromName = "MeineFirma";
Nun hab ich die web.de Daten durch welche von t-online ersetzt:
$mail = new PHPMailer();
$mail->IsSMTP(); //Versand über SMTP festlegen
$mail->Host = "smtpmail.t-online.de"; //SMTP-Server setzen
$mail->do_debug = 3;
$mail->SMTPDebug = true;
$mail->SMTPAuth = true; //Authentifizierung aktivieren
$mail->Username = "Name@t-online.de"; // SMTP Benutzername
$mail->Password = "PW"; // SMTP Passwort
//Absenderadresse der Email setzen
$mail->From = "Name@t-online.de";
//Name des Abenders setzen
$mail->FromName = "Name";
Und bekomme mit dem Debug level 3 eine Fehlermeldung.
SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 fwd25.t-online.de T-Online ESMTP receiver fmsad1725 ready. / T-Online ESMTP receiver smtpmail.t-online.de ready. " SMTP -> get_lines(): $data is "220 fwd25.t-online.de T-Online ESMTP receiver fmsad1725 ready. / T-Online ESMTP receiver smtpmail.t-online.de ready. " SMTP -> FROM SERVER: 220 fwd25.t-online.de T-Online ESMTP receiver fmsad1725 ready. / T-Online ESMTP receiver smtpmail.t-online.de ready. SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250-fwd25.t-online.de ready. " SMTP -> get_lines(): $data is "250-fwd25.t-online.de ready. " SMTP -> get_lines(): $data was "250-fwd25.t-online.de ready. " SMTP -> get_lines(): $str is "250-SIZE 52428800 " SMTP -> get_lines(): $data is "250-fwd25.t-online.de ready. 250-SIZE 52428800 " SMTP -> get_lines(): $data was "250-fwd25.t-online.de ready. 250-SIZE 52428800 " SMTP -> get_lines(): $str is "250-8BITMIME " SMTP -> get_lines(): $data is "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME " SMTP -> get_lines(): $data was "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME " SMTP -> get_lines(): $str is "250-AUTH=LOGIN PLAIN " SMTP -> get_lines(): $data is "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN " SMTP -> get_lines(): $data was "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN " SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN " SMTP -> get_lines(): $data is "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN " SMTP -> get_lines(): $data was "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN " SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " SMTP -> get_lines(): $data is "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES " SMTP -> get_lines(): $data was "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES " SMTP -> get_lines(): $str is "250 HELP " SMTP -> get_lines(): $data is "250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250 HELP " SMTP -> FROM SERVER: 250-fwd25.t-online.de ready. 250-SIZE 52428800 250-8BITMIME 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250 HELP SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "535 5.7.0 Authentication rejected / Authentication failed. " SMTP -> get_lines(): $data is "535 5.7.0 Authentication rejected / Authentication failed. " SMTP -> ERROR: Password not accepted from server: 535 5.7.0 Authentication rejected / Authentication failed. SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 2.0.0 Ok. " SMTP -> get_lines(): $data is "250 2.0.0 Ok. " SMTP -> FROM SERVER: 250 2.0.0 Ok. Die Email konnte nicht gesendet werden
Fehler: SMTP Error: Could not connect to SMTP host.
Ich weiß is heftig sry..
kann mir wer einen Rat geben?
MfG Ochsi