!TG wrote on 16 jun 2005 in microsoft.public.inetserver.asp.general:
I'm looking for something that should be simple.
What I want to do it just connect to an IMAP or POP server and see how
many unread messages there are and display that number.
Does anyone know how to do this?
Using JMail, installed with my site provider:
<% @LANGUAGE=VBSCRIPT %>
<%
Set pop3 = Server.CreateObject( "JMail.POP3" )
pop3.Connect "username", "password", "mail.mydomain.com"
Response.Write "You have " & pop3.count & " emails in your mailbox!"
pop3.Disconnect
%>
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)