showbody_imap.php
<HTML>
<HEAD>
<TITLE>Biz2Biz WebMail System</TITLE>
<style type="text/css">
<!--
td { font-size:9pt}
a {font-szie:9pt}
body {font-size:9pt}
input {font-size:9pt}
select {font-size:9pt}
-->
</style>
</HEAD>
<BODY>
<?php
include("imap_new.php");
$imap=new myimap;
$imap->hostname="192.168.100.13";
$imap->port=110;
$imap->username=$usr;
$imap->userpwd=$pwd;
$imap->open();
$mail_structure=$imap->get_structure($msg);
//echo gettype($mail_structure->parts);
//echo count($mail_structure->parts);
$imap->proc_structure($mail_structure,"",$msg);
@$imap->close();
?>
</body>
</html>