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 #176761 is a reply to message #176757] Sun, 22 January 2012 20:24 Go to previous messageGo to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma:
Senior Member
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 ?

Your solution logs in!
[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: Wed Nov 27 02:11:45 GMT 2024

Total time taken to generate the page: 0.04491 seconds