-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Are you sure your SMTP requires authentication? If so, have you checked the 
username and password you supplied?


On Wednesday 06 November 2002 11:19 am, Pushpinder Sngh Garcha wrote:
> 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";
> }
> ?>

- -- 
I distrust those people who know so well what God wants them to do because I 
notice it always coincides with their own desires.

- -Susan B. Anthony
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9yXUF/rncFku1MdIRAvhzAJ92qdrlSCZ3mFkFR5wymfzIXubG6gCbBozS
WZ9ibUvKiifEm7yz8CSKHT0=
=tv3g
-----END PGP SIGNATURE-----


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to