Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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

Posted on 2007-03-29
Medium Priority
Last Modified: 2013-11-23
I use this fonction
function GetRegistryValue(KeyName: string;Value:String): string;
Registry: TRegistry;
  Registry := TRegistry.Create(KEY_READ);
      Registry.RootKey := HKEY_CURRENT_USER;
      Registry.OpenKey(KeyName, False);
      Result := Registry.ReadString(Value);

procedure TForm1.Button1Click(Sender: TObject);
var s:String;
s:=GetRegistryValue('\Software\Microsoft\Internet Account Manager','Default Mail Account');
Edit1.Text := GetRegistryValue('\Software\Microsoft\Internet Account Manager\Accounts\'+s,'SMTP Email Address');
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.
Question by:ProgsX
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 18844507
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.
LVL 17

Expert Comment

ID: 18920412
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.
LVL 17

Accepted Solution

Wim ten Brink earned 750 total points
ID: 18988900
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...

Author Comment

ID: 20488767
I have the parameters for outlook express and msoutlook, and the others one must do it manually.


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

609 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