一个简单的(也可以说是不完全的)IMAP类和应用。(三)
类别: 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>
<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的图形函数中显示汉字。
- 下一篇: 用PHP连mysql和oracle数据库性能比较
-= 资 源 教 程 =-
文 章 搜 索