Hi.
When executing "mRet = mSes.mailLogon(mailNewSession!)" on a client, where no mail client is installed, this message appears:
=>Screenshot 2021-06-10 153238.png
Whereas on a machine with a mail client installed, I am able to select a profile:
=>Screenshot 2021-06-11 170350.png
My question:
How does "mSes.mailLogon()" decide, whether there is a mail client or not?
I presume it looks into the registry!? Can someone give a hint which entry it looks for?
Thank you and best regards.
Rolf
- Rolf Knaden
- PowerBuilder
- Friday, 11 June 2021 15:22 PM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.
I can't agree. I did the comparison of two registry-exports already and located the default-entry as 'HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\mailto\UserChoice'.
But even, if you don't select a default email-client but you have outlook installed, then mail_logon() recognizes outlook and presents the profile-selection.
John Fauss gave me a hint (see above) to look at ''HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail''. That's the solution!
Thanks and best regards,
Rolf
Could be you're right, maybe for Mapi. We use OLE with which we have experienced the problem for years. Maybe now things have improved with 365.
Anyway glad you found the correct entry!
regards.