note 46983 deleted from function.imap-fetchheader by didou
| From: | didou@php.net | Date: | Fri, 29 Oct 2004 15:26:13 +0000 |
| Subject: | note 46983 deleted from function.imap-fetchheader by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79317@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at gegenort dot org
----
I found a simple use of imap_fetchheader:
[php]
$mp = imap_open("{mail.domain.ext:110/pop3}", "user", "pass");
if($mp) {
// verbindung steht :)
$add_info = imap_check($mp);
$mail_cnt = $add_info->Nmsgs;
for( $x = 1; $x <= $mail_cnt; $x++ ) {
echo imap_fetchheader($mp,$x,0). '<br><br>';
}
imap_close($mp);
}
else {
imap_last_error();
}
[/php]
It's not very clear... but it works ;)
----
Reason: bad code