一个简单的(也可以说是不完全的)IMAP类和应用。(三)
时间:2007-02-17 来源: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>
php爱好 者站 http://www.phpfans.net php基础|php进阶|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>
php爱好 者站 http://www.phpfans.net php基础|php进阶|php模板.
相关阅读 更多 +