Senden von E-mail in PHP mittels der Hotmail-smtp

Ich versuche E-Mails zu senden in PHP mit Hotmail Smtp. Aber ich bin immer Fehler wie folgt:

2014-03-13 06:59:01 CLIENT -> SERVER: EHLO site.com 
2014-03-13 06:59:01 CLIENT -> SERVER: AUTH LOGIN 
2014-03-13 06:59:01 SMTP ERROR: AUTH command failed: 504 5.3.3 AUTH mechanism LOGIN not available 
2014-03-13 06:59:01 CLIENT -> SERVER: QUIT SMTP connect() failed. Mailer Error: SMTP connect() failed.

Bitte würde mir jemand empfehlen, was ich falsch mache??

Mein code :

error_reporting(E_STRICT);
require_once('class.phpmailer.php');
include('class.smtp.php');
$mail             = new PHPMailer(); //Initialize a new PHPMailer object;
//$body            = preg_replace("[\]",'',$body); //Replace unwanted characters of the content
$mail->CharSet ="ISO-8859-1";//Set the character set you need to specify
$mail->IsSMTP(); //Use SMTP service
$mail->SMTPDebug  = 1;                     //Enable debugging for SMTP
//1 = errors and messages
//2 = messages only
$mail->From = '[email protected]';
$mail->FromName = 'Name';
$mail->SMTPAuth   = true;                
$mail->SMTPSecure = "SSL";                 
$mail->Host       = 'smtp.live.com';      
$mail->Port       = '465';                         


$mail->Username   = '[email protected]';            //Username of your email account
$mail->Password   = '***';                               //Password of your email account

$mail->SetFrom('[email protected]', 'Name');
$mail->AddReplyTo('[email protected]','Name');
$mail->Subject    = $subject;
$mail->AltBody    = 'To view the message, please use an HTML compatible email viewer!'; //optional, comment out and test
$mail->MsgHTML($body);
$address = $to;
$mail->AddAddress($address, '');
//$mail->AddAttachment("images/phpmailer.gif");      //attachment
//$mail->AddAttachment("images/phpmailer_mini.gif"); //attachment

//var_dump($body);
if(!$mail->Send()) {
    //echo $body;

    echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
   echo "Message sent successfully!";
}

Hilfe brauchen. danke.

Wie würde ich dieses problem lösen? Jeder Hilfe wäre willkommen.

  • Naja, die Fehlermeldung ist ziemlich eindeutig: LOGIN-Authentifizierung Regelung ist nicht verfügbar (nicht angeboten), müssen Sie ein anderes verwenden (versuchen PLAIN).
  • Was bedeutet das? Wie sollte ich es korrigieren?? @arkascha
  • Haben Sie keine Lösung gefunden für dieses Problem?
  • Dies wurde bereits beantwortet in dem folgenden link stackoverflow.com/questions/10344213/...
InformationsquelleAutor Blue Rose | 2014-03-13
Schreibe einen Kommentar