Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4567
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Check email |
| Date | 2012-01-22 08:28 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <4F1BBAB4.4060909@arnowelzel.de> (permalink) |
| References | <jffv2q$f7g$1@news.albasani.net> |
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 = "mail@example.com";
$pass = "mypassword";
$messagecount = 0;
$mbox = imap_open($server, $user, $passwd);
if($mbox)
{
$messagecount = imap_num_msg($mbox);
imap_close($mbox);
}
?>
See more at <http://php.net/manual/en/book.imap.php>.
--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Check email "sl@exabyte" <sb5309@hotmail.com> - 2012-01-22 11:16 +0800
Re: Check email Jerry Stuckle <jstucklex@attglobal.net> - 2012-01-21 23:15 -0500
Re: Check email rataplanpupum <rataplanpupum> - 2012-01-22 13:10 +0100
Re: Check email Arno Welzel <usenet@arnowelzel.de> - 2012-01-22 08:28 +0100
Re: Check email Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-22 12:24 -0800
Re: Check email Arno Welzel <usenet@arnowelzel.de> - 2012-01-22 22:39 +0100
Re: Check email "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-01-23 09:41 +0100
Re: Check email "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-23 10:11 +0100
Re: Check email Redcat <redcat@catfolks.net> - 2012-02-06 23:20 +0000
Re: Check email Jerry Stuckle <jstucklex@attglobal.net> - 2012-02-06 19:43 -0500
csiph-web