no one can find solution to my problem??
| From: | Balaji Ankem | Date: | Tue, 08 Jan 2002 11:37:55 +0000 |
| Subject: | no one can find solution to my problem?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79781@lists.php.net to get a copy of this message | ||
> > 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" <jhaworth@witanjardine.co.uk>
> To: "'Balaji Ankem'" <balaji.ankem@wipro.com>
> 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:balaji.ankem@wipro.com]
> > 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" <jhaworth@witanjardine.co.uk>
> > To: "'Balaji Ankem'" <balaji.ankem@wipro.com>
> > 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:balaji.ankem@wipro.com]
> > > Sent: 08 January 2002 10:24
> > > To: Jon Haworth
> > > Cc: php-general@lists.php.net
> > > 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'] = 'balaji.ankem@wipro.com';
> > > $headers['From'] = 'balaji.ankem@wipro.com';
> > > $headers['User']='bankem';
> > > $headers['Password']='narayana';
> > > $recipients = array('balaji.ankem@wipro.com');
> > >
> > > $body = <<<EOF
> > >
> > > This is a sample body.
> > >
> > > EOF;
> > >
> > > $return = $smtp_session->send($recipients, $headers, $body);
> > >
> > > if ($return)
> > > echo "Mail was successfully sent to balaji.ankem@wipro.com";
> > > 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:mailadmin@wipro.com and delete this mail from your records. ------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------- 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:mailadmin@wipro.com and delete this mail from your records. ------------------------------------------------------------------------------------------------------------------------