Solved

I want Default Mail Account of all of all the programs mail.

Posted on 2007-03-29
4
155 Views
Last Modified: 2013-11-23
I use this fonction
function GetRegistryValue(KeyName: string;Value:String): string;
var
Registry: TRegistry;
begin
  Registry := TRegistry.Create(KEY_READ);
    try
      Registry.RootKey := HKEY_CURRENT_USER;
      Registry.OpenKey(KeyName, False);
      Result := Registry.ReadString(Value);
    finally
      Registry.Free;
    end;
end;

procedure TForm1.Button1Click(Sender: TObject);
var s:String;
begin
s:=GetRegistryValue('\Software\Microsoft\Internet Account Manager','Default Mail Account');
Edit1.Text := GetRegistryValue('\Software\Microsoft\Internet Account Manager\Accounts\'+s,'SMTP Email Address');
end;
I want Default Mail Account of all of all the programs mail.
example: Outlook Express, Outlook, Netscape, AOL, fire fox, opera….and other
Thank you for assistance.
0
Comment
Question by:ProgsX
4 Comments
 
LVL 3

Expert Comment

by:Andre_Tertling
Comment Utility
Apart from the fact that this sounds like preparation for an email harvester, most of these programs store the requested bits of information in plain text configuration files, so the first step for doing this would be simply installing those programs and looking at their config files.
0
 
LVL 17

Expert Comment

by:TheRealLoki
Comment Utility
The correct way would be to ask the user to enter their mail settings.
Most email clients encrypt the account details so that 3rd party programs can not do this.
0
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 250 total points
Comment Utility
Can't be done. Period! :-)

Well, it could, but it would take a lot of work and a real lot of knowledge of the protocols used by those applications, including discovering if and where they've been installed. Which leaves me the question why you would want this...
0
 

Author Comment

by:ProgsX
Comment Utility
I have the parameters for outlook express and msoutlook, and the others one must do it manually.


Progx
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now