Re: [PHP] Help Needed with PhpMailer

2002-11-06 Thread Evan Nemerson
-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 :
>
>  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




Re: [PHP] help needed with phpmailer

2002-10-31 Thread Jonathan Sharp
SEE: http://phpmailer.sourceforge.net/extending.html

(click Home Page then examples)

-js


Pushpinder Singh Garcha wrote:
> Hi All
> 
> I am new in the php development world. I have made a simple mail
> application using the phph mail() function.
> I needed to use an attachment facility ith the mailing program...so I
> have tried to use this solution called phpmailer()
> from http://sourceforge.net/projects/phpmailer
> 
> I am not able to find any installation info on the site...Has anyoneused
> this before?
> 
> Please help ..
> 
> Thanks
> --Pushpinder
> 
> 
> 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