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 = "[EMAIL PROTECTED]";
$mail->FromName = "Pushpinder Singh Garcha";
$mail->AddAddress("[EMAIL PROTECTED]");
$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
_________________________________
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] help needed with phpmailer Pushpinder Singh Garcha
- Re: [PHP] help needed with phpmailer Jonathan Sharp
- Re: [PHP] Help Needed with PhpMailer Pushpinder Sngh Garcha
- Re: [PHP] Help Needed with PhpMailer Evan Nemerson