PDA

Click to See Complete Forum and Search --> : Registry Entry Location


computerman
Dec 22nd, 2009, 10:21 AM
Can someone tell me if the following Registry entry is inexactly the same place for Vista & Windows 7, as I am using XP Pro.

HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\00000001

I am using this to get E-mail Account information in my app.

Computerman :)

kleinma
Dec 22nd, 2009, 10:29 AM
email account information from what email client? Outlook express?

I don't use outlook express or windows mail (which is what OE was renamed in Vista and up), but I can tell you I don't have that key in Win7.

computerman
Dec 22nd, 2009, 10:32 AM
Any of the Microsoft Mail Clients.

Computerman :)

weirddemon
Dec 22nd, 2009, 10:34 AM
Any of the Microsoft Mail Clients.

Computerman :)

When new applications are made, they don't always use the same registry keys.

So, specifying "all" doesn't really apply.

Also, since this is not a VB .NET question, I don't think it should be discussed here =/

MartinLiss
Dec 22nd, 2009, 11:07 AM
Thread moved to here.

dilettante
Dec 22nd, 2009, 11:39 AM
I have both Windows Mail (used with my non-primary email account) and Outlook 2003 installed under Vista. That registry key is not present.

techgnome
Dec 22nd, 2009, 12:24 PM
I don't have it either.... XP Pro SP3.

-tg

chris128
Dec 22nd, 2009, 01:29 PM
From a quick bit of googling it looks like that is just used for Outlook Express... and as Vista and 7 do not come with Outlook Express that could go some way to explaining why they do not exist. Windows Mail replaces Outlook Express in these OS's as far as I know, so you might want to look at where that stores its registry keys. I have this key on my Windows 7 system but it does not have an Accounts subkey or anything, it just has Mail, News and Trident under it... but then I dont use Windows Mail HKEY_CURRENT_USER\Software\Microsoft\Windows Mail

computerman
Dec 22nd, 2009, 01:50 PM
That first entry could have been for Outlook Express, which is the Mail Client that I use. I installed OutLook 2002 and looking further into the registry I found this :

HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts

Does this look more familiar for any of the Windows Mail Clients.

Computerman :)

dilettante
Dec 22nd, 2009, 02:27 PM
Another problem with the whole concept of grabbing a user's SMTP configuration for sending emails is that a given user may not even have one at all. Lots of people rely on Web-based email and never even set up the SMTP/POP email account provided by their ISP.

Lots of software that "phones home" with error reports or user feedback now either POST to a Web page, send the info via a Web Service, FTP it to a server, or bring up a feedback page in the user's default Web browser. The HTTP-based options generally work through firewalls and proxies too, which might block or redirect any request using the standard SMTP port number. Just a thought.

techgnome
Dec 22nd, 2009, 02:33 PM
Or more than one... I don't use a single SMTP for all of my mail.

-tg

computerman
Dec 22nd, 2009, 02:44 PM
The application that I am developing takes the information from a form and the user has the opportunity to e-mail it to them. Alot of people do not know what their settings are, and the vast majority still use the SMTP/POP accounts provided by their ISP.

Once I have established the Registry structure I can then pickup all the Mail Accounts that they have and they can choose which Account to use.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim tmpUserName As String

For Each subkey As String In My.Computer.Registry.CurrentUser.OpenSubKey("Software\Microsoft\Internet Account Manager\Accounts", False).GetSubKeyNames
If subkey.Contains("0") Then
tmpUserName = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\" & subkey, "SMTP Display Name", Nothing)
Me.ListBox1.Items.Add(tmpUserName)
End If
Next

End Sub

This code does this for my machine.

Computerman :)

chris128
Dec 22nd, 2009, 03:00 PM
I guess its a nice feature to have, as it could pick up some people's settings, but I hope you are not relying on this to work on every machine as some people will not be using a mail client that your app is aware of for a start. As long as the users have the option to enter their own settings if they either dont want to use one of the accounts that your program detected or if your program failed to detect any accounts, then I dont see any harm in doing that

computerman
Dec 22nd, 2009, 03:11 PM
The more I look into it, the more complicated it will get. As long as they know or can get hold of their account name & password as well as their SMTP address either from their ISP or web account, then it should work.

By the way Chris how is the SMTP server class coming on?

Computerman :)

chris128
Dec 22nd, 2009, 03:44 PM
By the way Chris how is the SMTP server class coming on?
I was afraid someone would ask me that sooner or later haha I just have not had enough spare time recently to get any further with it :( Hopefully after xmas I will get it at least to a BETA testing stage!

computerman
Dec 22nd, 2009, 04:56 PM
Let me know when it is ready and I can Beta test it for you.

Computerman :)