I need to launch the native email application from my application. I tried using the QDesktopServices but in vain. I searched for google and in some post I got it requires SwEvents. I tried providing SwEvents capability but still it returns false.
I used the following code:
If anybody have the idea to fix the issue or some other way to launch the native email client with the provided to addreess and subject, do let me know.Code:QDesktopServices::openUrl(QUrl(tr("mailto:email@example.com?subject=Testing feedback&body=HelloFriend")))