Connect to IMAP or POP

Discussion in 'ASP General' started by !TG, Jun 16, 2005.

  1. !TG

    !TG Guest

    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?
     
    !TG, Jun 16, 2005
    #1
    1. Advertising

  2. !TG

    Evertjan. Guest

    !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)
     
    Evertjan., Jun 16, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik Ormåsen

    Curier-IMAP and imap.create()

    Henrik Ormåsen, Aug 19, 2006, in forum: Ruby
    Replies:
    0
    Views:
    178
    Henrik Ormåsen
    Aug 19, 2006
  2. Jon Fi
    Replies:
    4
    Views:
    562
    Kashia Buch
    Oct 21, 2006
  3. jasonnaylor
    Replies:
    1
    Views:
    257
    jasonnaylor
    Apr 16, 2008
  4. Adam Akhtar
    Replies:
    1
    Views:
    180
    Eric Hodel
    Dec 15, 2008
  5. Abhishiv Saxena

    Support for IMAP IDLE in net/imap

    Abhishiv Saxena, Jul 3, 2009, in forum: Ruby
    Replies:
    4
    Views:
    199
    Eric Hodel
    Jul 4, 2009
Loading...

Share This Page