> > Do I get to see the class then?

 Thankyou. :-)

> > It's hard to see what this line is doing:
> > > $smtp_session = new Mail_smtp(array('10.145.0.18', 25, TRUE, '', ''));

 This line creates SMTP session (parameters are mail server, SMTP port,
 authentication required or not)

 > Without seeing what these lines are including:
> > > include_once('Mail/smtp.php');
> > > include_once('Net/SMTP.php');

 These two lines include the smtp.php and SMTP.php from
 php/pear/Mail/smtp.php  - php/pear/Net/SMTP.php

 for required functions send and Mail_smtp.


 cheers
 -Balaji


> ----- Original Message -----
> From: "Jon Haworth" <[EMAIL PROTECTED]>
> To: "'Balaji Ankem'" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 08, 2002 4:17 PM
> Subject: RE: [PHP] no one can find solution to my problem??
>
>
> > Do I get to see the class then?
> >
> > It's hard to see what this line is doing:
> > > $smtp_session = new Mail_smtp(array('10.145.0.18', 25, TRUE, '', ''));
> >
> > Without seeing what these lines are including:
> > > include_once('Mail/smtp.php');
> > > include_once('Net/SMTP.php');
> >
> > Cheers
> > Jon
> >
> >
> > -----Original Message-----
> > From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
> > Sent: 08 January 2002 10:53
> > To: Jon Haworth
> > Subject: Re: [PHP] no one can find solution to my problem??
> >
> >
> > Thanks for u'r reply.  :)
> >
> > cheers
> > -Balaji
> > ----- Original Message -----
> > From: "Jon Haworth" <[EMAIL PROTECTED]>
> > To: "'Balaji Ankem'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 08, 2002 4:08 PM
> > Subject: RE: [PHP] no one can find solution to my problem??
> >
> >
> > > Would be handy to see the class as well :-)
> > >
> > > Cheers
> > > Jon
> > >
> > >
> > > -----Original Message-----
> > > From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
> > > Sent: 08 January 2002 10:24
> > > To: Jon Haworth
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] no one can find solution to my problem??
> > >
> > >
> > > Hi Jon,
> > >    I am not running "sendmail" on my localhost.
> > > I am sending stuff to my company mail server.
> > >
> > > yaa I tried with SMTP also..But no use..
> > >
> > > if u don't mind...please check the following code..
> > >
> > > <?php
> > >
> > > include_once('Mail/smtp.php');
> > > include_once('Net/SMTP.php');
> > >
> > > # Replace 127.0.0.1 with another SMTP host if needed
> > > $smtp_session = new Mail_smtp(array('10.145.0.18', 25, TRUE, '', ''));
> > > $headers['Subject'] = 'Sample subject';
> > > $headers['Reply-To'] = '[EMAIL PROTECTED]';
> > > $headers['From'] = '[EMAIL PROTECTED]';
> > > $headers['User']='bankem';
> > > $headers['Password']='narayana';
> > > $recipients = array('[EMAIL PROTECTED]');
> > >
> > > $body = <<<EOF
> > >
> > >    This is a sample body.
> > >
> > > EOF;
> > >
> > > $return = $smtp_session->send($recipients, $headers, $body);
> > >
> > > if ($return)
> > >    echo "Mail was successfully sent to [EMAIL PROTECTED]";
> > > else
> > >    echo "FAIL";
> > >
> > > ?>
>

-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to