Hi Guys,
I have a small problem which I cannot figure out, but taking my chances with you here. I have the same php script installed on my laptop and on a desktop. If it runs from the laptop, mail goes out and received. If I send it from the desktop, I get a SMTP Error: Could not authenticate notification along with Warning: Cannot modify header information - headers already sent .....
Below is part of the script. Can someone shed some light why one would work and not the other if both are configured the same. Thank-you in advance.
require("class.phpmailer.php");
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->Host = "smtphm.XXXXXX.XX";
$mail->SMTPAuth = true;
$mail->Username = "XXX";
$mail->Password = "XXXX";
$mail->From = "webmaster@XXXX.XX";
$mail->FromName ="XXXXX";
$mail->AddAddress("$feedbackemail","$feedbackname");
$mail->WordWrap = 50;
$mail->IsHTML(true);
I also put in $mail->SMTPDebug = 2; to see the actual message and this is what he provides me.
SMTP -> FROM SERVER:220 BLU0-SMTP73.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at Mon, 26 Apr 2010 18:22:40 -0700
SMTP -> FROM SERVER: 250-BLU0-SMTP73.blu0.hotmail.com Hello [70.31.211.52] 250-TURN 250-SIZE 35840000 250-ETRN 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-8bitmime 250-BINARYMIME 250-CHUNKING 250-VRFY 250-TLS 250-STARTTLS 250 OK
SMTP -> ERROR: AUTH not accepted from server: 530 5.7.0 Must issue a STARTTLS command first
SMTP -> FROM SERVER:530 5.7.0 Must issue a STARTTLS command first
SMTP -> ERROR: RSET failed: 530 5.7.0 Must issue a STARTTLS command first
SMTP Error: Could not authenticate.
My ISP requires authentication now, but didn't before. the mail() command was working fine. As mentioned, the laptop contains the same script and it works flawlessly. I've checked high and low but cannot figure out what to do.
Thank you in advance.