Hi,
Trying to determine what Email Program is configured in Windows 7 as the Default Email Program.
Have tried checking the Registry Keys but having very inconsistent results.
The inconsistency is not with the PB code, it's with the registry Keys.
RegistryGet("HKEY_CURRENT_USER\Software\Clients\mail",',RegString!, ls_email)
* Tried this code for each of the keys listed below.
Code works fine to get the key value, problem is the key is not always there - see HKEY_CURRENT_USERS.
On one Win 7 PC, Lotus Notes and Outlook both have been installed.
User A has MS Outlook set as Default Email Program.
User B has Lotus Notes set as Default Email Program.
PC #1 [2 user accounts, each has different default email pgm]
Registry: [NOTE: Registry Keys viewed while signed in as user B]
HKEY_CLASSES_ROOT\mailto\shell\open\command: [Microsoft Outlook]
I also checked the following:
HKEY_LOCAL_MACHINE\Software\Clients\mail: [Microsoft Outlook]
* I don't think these are right. User B has Lotus Notes set as Default Email Pgm and never opened Outlook, but the fact is these might not be user specific. Decided to look at USER keys.
HKEY_CURRENT_USER\Software\Clients\mail: [Lotus Notes]
* This was encouraging.
However, on the other machine which only has had Lotus Notes installed/configured, there isn't even a Clients section under HKEY_CURRENT_USER\Software\ so I guess I can't use that key.
PC #2 [one user account, one email pgm]
Registry:
HKEY_LOCAL_MACHINE\Software\Clients\mail: [Lotus Notes]
HKEY_CURRENT_USER\Software\Clients\mail:
* Key Does not exist. Clients section doesn't exist either.
- See attached screen shot of registry
I appreciate any recommendations or findings on a consistent way/key to determine the Default Email Program based on the current logged in User on windows 7.
Thanks.
Trying to determine what Email Program is configured in Windows 7 as the Default Email Program.
Have tried checking the Registry Keys but having very inconsistent results.
The inconsistency is not with the PB code, it's with the registry Keys.
RegistryGet("HKEY_CURRENT_USER\Software\Clients\mail",',RegString!, ls_email)
* Tried this code for each of the keys listed below.
Code works fine to get the key value, problem is the key is not always there - see HKEY_CURRENT_USERS.
On one Win 7 PC, Lotus Notes and Outlook both have been installed.
User A has MS Outlook set as Default Email Program.
User B has Lotus Notes set as Default Email Program.
PC #1 [2 user accounts, each has different default email pgm]
Registry: [NOTE: Registry Keys viewed while signed in as user B]
HKEY_CLASSES_ROOT\mailto\shell\open\command: [Microsoft Outlook]
I also checked the following:
HKEY_LOCAL_MACHINE\Software\Clients\mail: [Microsoft Outlook]
* I don't think these are right. User B has Lotus Notes set as Default Email Pgm and never opened Outlook, but the fact is these might not be user specific. Decided to look at USER keys.
HKEY_CURRENT_USER\Software\Clients\mail: [Lotus Notes]
* This was encouraging.
However, on the other machine which only has had Lotus Notes installed/configured, there isn't even a Clients section under HKEY_CURRENT_USER\Software\ so I guess I can't use that key.
PC #2 [one user account, one email pgm]
Registry:
HKEY_LOCAL_MACHINE\Software\Clients\mail: [Lotus Notes]
HKEY_CURRENT_USER\Software\Clients\mail:
* Key Does not exist. Clients section doesn't exist either.
- See attached screen shot of registry
I appreciate any recommendations or findings on a consistent way/key to determine the Default Email Program based on the current logged in User on windows 7.
Thanks.