Connect to IMAP or POP

T

!TG

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?
 
E

Evertjan.

!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

%>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top