PDA

View Full Version : How to open user´s e-mail client



Althor
22nd October 2008, 16:34
Hi,

I want to launch the user´s e-mail client from my qt app, but I don´t know how to do it.

Using QDesktopServices::openURL(...) with a mailto url the user's e-mail client is used to open a composer window containing the options specified in the URL. But I don´t want to compose a new message, I only want to open the e-mail client.

Which class I should to use?

Thanks in advance.
Regards.

Boron
22nd October 2008, 19:15
I think in this case you should simply call a QProcess, that opens the mail client instead of using QDesktopServices (very likely to be not platform independent any more; also keep relative and absolute pathnames in mind (tricky little bastards)).

But isn't the idea of clicking on a "mail address link" to write a mail to the owner of that address?
Just opening the mail client would be too less for me.

Althor
23rd October 2008, 10:39
But by using QProcess I need know the executable path and I want to build a cross-platform app.