This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
Specify email client in TLMDMapiSendMail?
It seems that Windows 10 strangely does not update the registry setting used by "Send To" and Mapi that launches the email client set up as the "Default App" setting. For example, I have the default set to Outlook yet it still brings up Thunderbird because that is the registry setting under: HKEY_CURRENT_USER\SOFTWARE\Clients\Mail
If I manually change that setting to Microsoft Outlook, then TLMDMapiSendMail launches Outlook. So, since all the installed clients are located in HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail (not HKEY_CURRENT_USER\SOFTWARE\Clients\Mail), would it be possible to pass the email client we want to TLMDMapiSendMail to invoke the email client of our choice or somehow honor the Windows 10 Default email app?
This is what I came up with playing around with settings:
Windows 10 "Default apps" setting writes to here:
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\mailto\UserChoice
"ProgId" samples:
Thunderbird.Url.mailto
Outlook.URL.mailto.15
Following "ProgId" values gets these:
Computer\HKEY_CLASSES_ROOT\Thunderbird.Url.mailto\shell\open\command
"C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -osint -compose "%1"
Computer\HKEY_CLASSES_ROOT\Outlook.URL.mailto.15\shell\open\command
"C:\Program Files (x86)\Microsoft Office\Root\Office16\OUTLOOK.EXE" -c IPM.Note /mailto "%1"
"Send To" and Mapi send mail uses this (not sure what changes this, it was set to "Mozilla Thunderbird" so I had to change it to "Microsoft Outlook" manually to match what comes from HKEY_LOCAL_MACHINE which contains all the mail clients):
Computer\HKEY_CURRENT_USER\SOFTWARE\Clients\Mail
"(Default)" samples:
Mozilla Thunderbird
Microsoft Outlook
Following "(Default)" values gets these:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Microsoft Outlook\shell\open\command
"C:\Program Files (x86)\Microsoft Office\Root\Office16\OUTLOOK.EXE" /recycle
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\shell\open\command
"C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -mail

Comments