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?
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