Help Needed with PhpMailer

From: Date: Wed, 06 Nov 2002 19:19:30 +0000
Subject: Help Needed with PhpMailer
Groups: php.general 
Request: Send a blank email to php-general+get-123064@lists.php.net to get a copy of this message
Hi , I am using PhpMailer in my mail application. I keep getting this error when I run the application "Message was not sent Mailer Error: SMTP Error: Could not authenticate" Here is the code that I am using : <?php require("class.phpmailer.php"); //require("class.smtp.php"); $mail = new phpmailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "smtp.abs.adelphia.net;smtp.dc2.adelphia.net"; // SMTP server
$mail->SMTPAuth = true;     // turn on SMTP authentication
$mail->Username = "my_login"; // SMTP username $mail->Password = "my_password"; // SMTP password $mail->From = "pgarcha@adelphia.net"; $mail->FromName = "Pushpinder Singh Garcha"; $mail->AddAddress("pgarcha@hotmail.com"); $mail->Subject = "This is a Test Mail"; $mail->Body = "hi ! \n\n I am really very very anxious to see if this works or not !"; $mail->WordWrap = 20; if(!$mail->Send()) { echo "Message was not sent\n\n"; echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message has been sent"; } ?> Pushpinder Singh Garcha _________________________________ Web Developer T. Falcon Napier and Associates, Inc.
Off     : 704 987 6500
Cell : 704 236 2939 Fax : 704 987 5002 _________________________________

« previous php.general (#123064) next »