how to list out outlook express existing account?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: how to list out outlook express existing account?

  1. #1
    Join Date
    Apr 2006
    Posts
    56

    how to list out outlook express existing account?

    hi all,

    i would like to know how i could list out all existing outlook express account in .net? i need this function for the user to select account to sent email and able to do editing on account selected. thanks for experts who interest on this.. and important things is can help me solve this problem.. thanks

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Code:
    using System;
    using Microsoft.Win32;
    
    namespace MyApp
    {
        class Program
        {
            static void Main(string[] args)
            {
                RegistryKey accounts = Registry.CurrentUser
                    .OpenSubKey("Software")
                    .OpenSubKey("Microsoft")
                    .OpenSubKey("Internet Account Manager")
                    .OpenSubKey("Accounts");
                foreach (string accountKey in accounts.GetSubKeyNames())
                {
                    string accountName = accounts.OpenSubKey(accountKey).GetValue("Account Name").ToString();
                    Console.WriteLine(accountName);
                }
            }
        }
    }
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Apr 2006
    Posts
    56
    oh, thanks genius~~
    can continuing my work now. thanks Phil

Similar Threads

  1. Account
    By Tmcclain in forum Java
    Replies: 3
    Last Post: 11-20-2006, 09:04 AM
  2. ADDING ANOTHER ACCOUNT TO THE SAME OUTLOOK
    By paul in forum Enterprise
    Replies: 0
    Last Post: 11-13-2002, 11:37 AM
  3. Replies: 0
    Last Post: 11-13-2001, 06:55 AM
  4. Creating an outlook express account
    By Leon in forum VB Classic
    Replies: 2
    Last Post: 09-28-2000, 02:52 PM
  5. Creating an outlook express account
    By Leon in forum VB Classic
    Replies: 0
    Last Post: 09-25-2000, 02:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center