Re: Registry Entry Location
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.
Re: Registry Entry Location
Any of the Microsoft Mail Clients.
Computerman :)
Re: Registry Entry Location
Quote:
Originally Posted by
computerman
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 =/
Re: Registry Entry Location
Re: Registry Entry Location
I have both Windows Mail (used with my non-primary email account) and Outlook 2003 installed under Vista. That registry key is not present.
Re: Registry Entry Location
I don't have it either.... XP Pro SP3.
-tg
Re: Registry Entry Location
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
Re: Registry Entry Location
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 :)
Re: Registry Entry Location
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.
Re: Registry Entry Location
Or more than one... I don't use a single SMTP for all of my mail.
-tg
Re: Registry Entry Location
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.
Code:
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 :)
Re: Registry Entry Location
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
Re: Registry Entry Location
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 :)
Re: Registry Entry Location
Quote:
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!
Re: Registry Entry Location
Let me know when it is ready and I can Beta test it for you.
Computerman :)