Re: login and read ad email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 05 January 2008 22:06:47 Yui Hiroaki wrote:
> HI!
>
> I try to login and read ad email in server.
> Does any one know how to do this?
> Below does not run correctly.

right, the line:

if( !eregi("OK", $line) ) // login faile?if( !eregi("OK", $line) ) //ogin
faile?

it looks just like this? without reading the code it strikes me as odd if it 
does.

>
> Regards,
> Yui
>
> p.s
> I try to see pop3 email.
> I can not find the example!
>
> <?php
>
> $host = "abc.com";
> $port = 110;
> $user ='test@xxxxxxx';
> $pwd ='password';
>
> $fp = fsockopen($host, $port);
>
> // ログイン
> fputs($fp,"USER $user\r\n"); // USE
> $line = fgets($fp, 512);
>
>
> fputs($fp,"PASS $pwd\r\n"); // pwd
> $line = fgets($fp, 512);
> echo $line;
>
> if( !eregi("OK", $line) ) // login faile?if( !eregi("OK", $line) ) //ogin
> faile?
> {
>     echo "fail";
>     fclose($fp);
>     return false;
> }
> echo "sucess";
> ?>
>
> > > 2008/1/1, Richard Lynch <ceo@xxxxxxxxx>:
> > >> PHP's IMAP module will cheerfully use POP if you insist on it.
> > >>
> > >> You don't have to READ the email with IMAP.
> > >>
> > >> You can just re-arrange all your folders or do whatever it is you
> > >> want
> > >> it to do...
> > >>
> > >> You keep asking the same questions, and I keep telling you IMAP will
> > >> do it.
> > >>
> > >> maybe you should try it?
> > >>
> > >> On Mon, December 31, 2007 1:17 am, Yui Hiroaki wrote:
> > >> > Thank you!
> > >> >
> > >> > But I would like to use pop.
> > >> >
> > >> > Because I do not want display the email.
> > >> > I just access and get email.
> > >> >
> > >> > Please teach me some advise.
> > >> > Yui
> > >> >
> > >> > 2007/12/31, Richard Lynch <ceo@xxxxxxxxx>:
> > >> >> On Sun, December 30, 2007 2:19 pm, Yui Hiroaki wrote:
> > >> >> > HI!
> > >> >> >
> > >> >> > I am trying to access qmail with php.
> > >> >> >
> > >> >> > Why!
> > >> >> > Because I would like to read mail who someone send an email me
> > >>
> > >> to
> > >>
> > >> >> > qmail.
> > >> >> >
> > >> >> > If anyone knows the code, please send me the code.
> > >> >>
> > >> >> http://php.net/imap
> > >> >>
> > >> >> Sample Code:
> > >> >>
> > >> >> http://l-i-e.com/imap/index.phps
> > >> >>
> > >> >> Some spam filtering I set up to catch what slips through spam
> > >> >> assasin
> > >> >> and get the email sorted server-side rather than have my desktop
> > >> >> client CHOKES trying to sort out thousands of emails upon
> > >>
> > >> login...
> > >>
> > >> >> --
> > >> >> Some people have a "gift" link here.
> > >> >> Know what I want?
> > >> >> I want you to buy a CD from some indie artist.
> > >> >> http://cdbaby.com/from/lynch
> > >> >> Yeah, I get a buck. So?
> > >>
> > >> --
> > >> Some people have a "gift" link here.
> > >> Know what I want?
> > >> I want you to buy a CD from some indie artist.
> > >> http://cdbaby.com/from/lynch
> > >> Yeah, I get a buck. So?
> >
> > --
> > Some people have a "gift" link here.
> > Know what I want?
> > I want you to buy a CD from some indie artist.
> > http://cdbaby.com/from/lynch
> > Yeah, I get a buck. So?



-- 
---
Børge Holen
http://www.arivene.net

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux