Results 1 to 3 of 3

Thread: log on to pop3-server

  1. #1

    Thread Starter
    Junior Member Barkruk's Avatar
    Join Date
    Apr 2001
    Location
    Holland
    Posts
    27

    log on to pop3-server

    I have made a program that show me in the systemtray how much emails did excist in my mailbox. The program is written in vb6, but i want to convert it to .NET

    Of course I don't want to use the old WinSock, I want to work now with system.net.sockets, but I don't understand the receiving of data from .NET

    Formaly I send my data with WinSock and get the received data with Winsock1.DataArrival, how can I do this with .NET? I already searched a much for using the .net.Sockets but a cannot get it, maybe I am to stupid :s

    Please if someone can explain...

    The mailcheck process is as below:


    Connect with making use of .net.sockets to the pop3-server

    the server replys
    (how can i create a check if the server did reply?)

    After getting te reply ma program have so send a command like "USER username"
    (again get the server reply)

    Send ma password like "PASS password"
    (again get the server reply)

    Send the "STAT"-command to receive the mail-count
    Receive the number of e-mails in ma inbox and display Icon(number) in the systemtray

    In VB6 my app works very fine, but I really want to convert it to .NET because of the new features of .NET

    So if someone can help me....Please

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Here is a C# version. I converted this to VB myself, it was not hard, but I am not on the comp that has the VB code.

    http://www.planetsourcecode.com/vb/s...=115&lngWId=10

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Also read the comments I made about his code, there appears to be a recursive call that leaves the thread running indefinately.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width