Results 1 to 3 of 3

Thread: How to open user´s e-mail client

  1. #1
    Join Date
    Oct 2008
    Posts
    29
    Qt products
    Qt4
    Platforms
    Windows

    Default How to open user´s e-mail client

    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.

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to open user´s e-mail client

    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.

  3. #3
    Join Date
    Oct 2008
    Posts
    29
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to open user´s e-mail client

    But by using QProcess I need know the executable path and I want to build a cross-platform app.

Similar Threads

  1. Opening the default mail client
    By munna in forum Newbie
    Replies: 5
    Last Post: 3rd April 2006, 13:58
  2. How do I keep the client connection open ?
    By probine in forum Newbie
    Replies: 2
    Last Post: 25th March 2006, 19:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.