Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4567
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Arno Welzel <usenet@arnowelzel.de> |
| Newsgroups | comp.lang.php |
| Subject | Re: Check email |
| Date | Sun, 22 Jan 2012 08:28:52 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 33 |
| Message-ID | <4F1BBAB4.4060909@arnowelzel.de> (permalink) |
| References | <jffv2q$f7g$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15 |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx04.eternal-september.org; posting-host="KYiwCJH8Z2yKpLGgP5VBCw"; logging-data="19828"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kiIx11kLo2PnnouMt17QXgBrn8qxFjYg=" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
| In-Reply-To | <jffv2q$f7g$1@news.albasani.net> |
| Cancel-Lock | sha1:W9kLvxKOb0wwUwbo9I76hu3sUhs= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:4567 |
Show key headers only | View raw
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