Hi,
How can i open user's default mail client with prefilled mail address and subject when a button is clicked in my application ?
Thanks a lot.
Hi,
How can i open user's default mail client with prefilled mail address and subject when a button is clicked in my application ?
Thanks a lot.
Short answer: You can't.
Long answer: It depends on the platform and window manager used.
General answer: Use QProcess.
How can i do it on windows ?Long answer: It depends on the platform and window manager used.
How can i do it using QProcess?General answer: Use QProcess.
What will <a href="mailto:astark1@unl.edu"> do ?
Thanks.
Using native WinAPI calls or by looking at the registry yourself to find the default mail client and run it with QProcess. Or by using ActiveX provided that the mail client is a COM server (you can then issue commands to it through the OLE interface).Originally Posted by munna
Just run its binary after you find out what the default mail client is. The way to issue commands to the client differs depending on the client. In some cases it might not be possible at all.How can i do it using QProcess?
Can I in some way use
<a href="mailto:astark1@unl.edu"> ???
Thanks
Try it in your Start Menu -> Run. If it works there (mailto:someaddress@somehost.domain) you can try to run it via cmd.exe, but it'll probably be better to use native WinAPI launcher calls for that.
You might also try QDS, maybe it does what you need.
Bookmarks