Sending HTML formatted text fails

I use in in-house developed app to send formatted html code to the default mail app on Windows11. When eMClient is the default mail app I see the HTML formatted code rather than the properly formatted text etc. This process works fine when Thunderbird is the default mail app.