DarkSoja: lokaler Mailserver / Email senden

Beitrag lesen

Danke für die schnelle Antwort!

Na, verrate uns bloß nicht, was für Fehler das waren! ;-)

Hier mein Code (natürlich hab ich bei mir die richtigen Daten eingetragen):

  
  
$mail = new phpmailer();  
  
						  
$mail->IsSMTP(); // per SMTP verschicken  
$mail->Host = "smtp.googlemail.com"; // SMTP-Server  
$mail->SMTPAuth = true; // SMTP mit Authentifizierung benutzen  
$mail->Username = "Ich@googlemail.com"; // SMTP-Benutzername  
$mail->Password = "XXXX"; // SMTP-Passwort  
$mail->From = "Ich@googlemail.com";  
$mail->FromName = "Ich";  
$mail->AddAddress("Du@googlemail.com");  
$mail->WordWrap = 50; // Zeilenumbruch einstellen  
$mail->IsHTML(true); // als HTML-E-Mail senden  
$mail->Subject = "Test ";  
$mail->Body = "<b>Test</b>";  
if(!$mail->Send())  
	{  
		echo "Die Nachricht konnte nicht versandt werden <p>";  
		echo "Mailer Error: " . $mail->ErrorInfo;  
	}  
else  
	{  
		echo "Nachricht gesendet...";  
}  
  

Und hier die Fehler:

SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 mx.google.com ESMTP 5sm647943fak.47 " SMTP -> get_lines(): $data is "220 mx.google.com ESMTP 5sm647943fak.47 " SMTP -> FROM SERVER: 220 mx.google.com ESMTP 5sm647943fak.47 SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 mx.google.com at your service " SMTP -> get_lines(): $data is "250 mx.google.com at your service " SMTP -> FROM SERVER: 250 mx.google.com at your service SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 " SMTP -> get_lines(): $data is "530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 " SMTP -> FROM SERVER: 530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 SMTP -> ERROR: MAIL not accepted from server: 530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 " SMTP -> get_lines(): $data is "530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 " SMTP -> FROM SERVER: 530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 SMTP -> ERROR: RCPT not accepted from server: 530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 " SMTP -> get_lines(): $data is "530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 " SMTP -> FROM SERVER: 530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 SMTP -> ERROR: DATA command not accepted from server: 530 5.7.0 Must issue a STARTTLS command first. 5sm647943fak.47 SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "221 2.0.0 closing connection 5sm647943fak.47 " SMTP -> get_lines(): $data is "221 2.0.0 closing connection 5sm647943fak.47 " SMTP -> FROM SERVER: 221 2.0.0 closing connection 5sm647943fak.47 Die Nachricht konnte nicht versandt werden

Mailer Error: