一个简单的(也可以说是不完全的)IMAP类和应用。(三)
发表于:2007-07-01来源:作者:点击数:
标签:
showbody_imap. php HTML HEAD TITLEBiz2Biz 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);
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>
原文转自:http://www.ltesting.net