FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Check email
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Check email [message #176764 is a reply to message #176761] Sun, 22 January 2012 21:39 Go to previous messageGo to previous message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma:
Senior Member
Captain Paralytic, 2012-01-22 21:24:

> On Jan 22, 7:28 am, Arno Welzel <use...@arnowelzel.de> wrote:
>> sl@exabyte, 2012-01-22 04:16:
>>
>>> Is it possible to find out whether there are any new emails in a mailbox
>>> without logging in ?
>>
>> No.
>>
>>> In other words, some PHP codes to return the number of new emails in a an
>>> email account.
>>
>> One approach:
>>
>> <?php
>> $server = "{pop3.example.com:110/pop3}INBOX";
>> $user = "m...@example.com";
>> $pass = "mypassword";
>> $messagecount = 0;
>>
>> $mbox = imap_open($server, $user, $passwd);
>> if($mbox)
>> {
>> $messagecount = imap_num_msg($mbox);
>> imap_close($mbox);}
>>
>> ?>
>
> Err the question was: Is it possible to find out whether there are any
> new emails in a mailbox
> without logging in ?

My answer was "no" - please read, what i wrote.

> Your solution logs in!

Of course, since it is usually not possible without logging in. If you
know a better way - feel free to post it here. But i assume, you also
don't know a better solution.

There is never a dumb question, just dumb answers ;-)

Well - one could check the filesystem of the mail server with PHP as
well and read the contents without logging in via IMAP/POP3 - but this
means, you need to have access to the filesystem via PP and you need to
know which software is used on the server etc. - i think this is far
beyond the knowledge of the OP.


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reduce all spaces to one
Next Topic: Re: Tips to find Technical Co-founder / Tech lead
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 16:53:24 GMT 2024

Total time taken to generate the page: 0.04498 seconds