Hallo Zusammen!
Ich habe mit dem phpmailer folgendes Problem:
ich erhalten diesen Error-Code:
Connection: opening to smtp.googlemail.com:465, timeout=300, options=array ()
Connection: opened
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is ""
SERVER -> CLIENT:
SMTP NOTICE: EOF caught while checking if connected
Connection: closed
The following From address failed: simuundquex@gmail.com : Called MAIL FROM without being connected,,,SMTP server error: Called MAIL FROM without being connected
Message could not be sent.Mailer Error: The following From address failed: simuundquex@gmail.com : Called MAIL FROM without being connected,,,SMTP server error: Called MAIL FROM without being connectedSMTP server error: Called MAIL FROM without being connected
Ich benutze diesen PHP-Code
Was ist das für ein Error und was muss ich verändern?
________________________
MfG
Simuletsplay
Ich habe mit dem phpmailer folgendes Problem:
ich erhalten diesen Error-Code:
Connection: opening to smtp.googlemail.com:465, timeout=300, options=array ()
Connection: opened
SMTP -> get_lines(): $data is ""
SMTP -> get_lines(): $str is ""
SERVER -> CLIENT:
SMTP NOTICE: EOF caught while checking if connected
Connection: closed
The following From address failed: simuundquex@gmail.com : Called MAIL FROM without being connected,,,SMTP server error: Called MAIL FROM without being connected
Message could not be sent.Mailer Error: The following From address failed: simuundquex@gmail.com : Called MAIL FROM without being connected,,,SMTP server error: Called MAIL FROM without being connectedSMTP server error: Called MAIL FROM without being connected
Ich benutze diesen PHP-Code
PHP-Code:
<?php
require 'phpmailer/PHPMailerAutoload.php';
$mail = new PHPMailer;
//$mail->SMTPDebug = 3; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.googlemail.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = false; // Enable SMTP authentication
$mail->Username = 'simuundquex@gmail.com'; // SMTP username
$mail->Password = 'Ausgeblendet!'; // SMTP password
$mail->SMTPSecure = 'SSL'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465; // TCP port to connect to
$mail->From = 'simuundquex@gmail.com';
$mail->FromName = 'SimuUndQuex';
$mail->addAddress('simuletsplay@gmx.de'); // Add a recipient
$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';
$mail->SMTPDebug = 4;
if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent';
}
________________________
MfG
Simuletsplay
Kommentar