home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD><TITLE>Sambar Server POP3Mail</TITLE>
- <%
- #include "../header.asp"
- #include "../menu.asp"
- area = "inbox";
- #include "submenu.asp"
-
- server = getParameter($params, "server");
- username = getParameter($params, "username");
- password = getParameter($params, "password");
- msgno = (int)getParameter($params, "msgno");
- start = (int)getParameter($params, "start");
- stop = (int)getParameter($params, "stop");
-
- pop3 = POP3Connect(server, username, decrypt(password));
- stat = POP3Stat(pop3);
- messages = stat[0];
- size = stat[1];
- if (stop > messages)
- stop = messages;
-
- printf("<BR><center><table border=0 cellpadding=0><tr><td>\n");
- printf("<B>%s@%s</B><BR>\n", username, server);
- printf("<FONT SIZE=-1 color=#0000ff>Message %d</FONT><BR>\n", msgno);
-
- msg = POP3Message(pop3, msgno);
- msgno = msg[0];
- size = msg[1];
- to = msg[2];
- from = msg[3];
- subj = msg[4];
- date = msg[5];
-
- printf("<TABLE border=0 bgcolor=#DDDD00>\n");
- printf("<TR><TD><B>From</B></TD><TD>%s</TD></TR>", from);
- printf("<TR><TD><B>To</B></TD><TD>%s</TD></TR>", to);
- printf("<TR><TD><B>Date</B></TD><TD>%s</TD></TR>", date);
- printf("<TR><TD><B>Subject</B> </TD><TD>%s</TD></TR>", subj);
- printf("</TABLE><BR><PRE>\n");
-
- write(POP3Retrieve(pop3, msgno, 999, 99999));
- POP3Disconnect(pop3);
-
- printf("</PRE></table></center>\n");
-
- #include "../footer.asp"
- %>
- </BODY></HTML>
-