Results 1 to 3 of 3

Thread: Pop3

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    6

    Exclamation Pop3

    i have done a program for retrieving mail from the inbox usig POP3 server.wat i need is whenever i log in to my system...the project should atomatically connect to the POP3 server and should inform me if any new mail arrives in my inbox...Can anyone help me how to do this ....

  2. #2
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: Pop3

    You can set your application to run on startup using the registery. You add your application into the registry by using this code. Then just add the code you want to run to check for any new mail on the Form Load event.

    VB Code:
    1. Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true);
    2.  
    3. if (chkStartup.Checked == true)
    4. {
    5.    // Set the program to start with Windows:
    6.    regKey.SetValue(Application.ProductName, Application.ExecutablePath);
    7. }
    8. else if (regKey.GetValue(Application.ProductName) != null)
    9. {
    10.     regKey.DeleteValue(Application.ProductName);
    11. }

    C# - .NET 1.1 / .NET 2.0

    "Take everything I say with a grain of salt, sometimes I'm right, sometimes I'm wrong but in the end we've both learned something."
    _____________________
    Regular Expressions Library
    Connection String
    API Functions
    Database FAQ & Tutorial

  3. #3
    Member
    Join Date
    May 2006
    Posts
    60

    Re: Pop3

    Not sure I understand.
    You've already created an app that downloads your email using the POP3 protocol.
    But you don't know how to run the program when you log onto your pc?

    Why wouldn't you just put the app in the Startup folder on installation?

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