Zend - The PHP Company




Email

Add Code


ioMail  

Type: code fragment
Added by: hadiwinata
Entered: 27/09/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 8839
this code let your user check the newsgroup or even their mail account from your web page...


imap.php
<?php
$mbox 
imap_open ("{information.binus.ac.id/nntp:119}forum.keluhan"""""); 
echo 
$mbox;


echo 
"<p><h1>Newsgroup in forum.keluhan</h1>n";
$headers imap_headers ($mbox);

for (
$x=1$x count($headers); $x++) {
  
$idx = ($x-1);
  echo 
"<a href="view.php?num=$x">$headers[$idx]</a><br>";
}
imap_close($mbox);
?>

view.php
<?php
$mbox 
imap_open ("{information.binus.ac.id/nntp:119}forum.keluhan"""""); 
echo 
$mbox;
$headers imap_headers ($mbox);
echo 
"<p><h1>View " $headers[$num-1] . " </h1>n";
echo 
imap_fetchheader($mbox,$num);
echo 
"<BR><P>";
echo 
imap_body($mbox,$num);

?>


Usage Example




Rate This Script





Search



This Category All Categories