Results 1 to 8 of 8

Thread: How to get default email client to open on clicking 'email' button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to get default email client to open on clicking 'email' button

    It means the process didn't start but reasons for that may vary. Check what getenv("BROWSER") returns, maybe it is not set on a particular system.

    You can open any site you want by providing a different address than mailto:something (like http://www.yourmailsiteaddress.com). But this will only work if the default browser is set (using the $BROWSER env variable).

  2. #2
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    25

    Default Re: How to get default email client to open on clicking 'email' button

    Hi,
    used a QMessageBox to get the value of getenv.It shows a blank.
    Any suggestions on what else I could try?
    Also,thanks for being patient and replying to my queries.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to get default email client to open on clicking 'email' button

    What happens if you write env|grep BROWSER in a terminal?

    If BROWSER is empty then you need to ask the user to set his email client in the preferences of the application.

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
  •  
Qt is a trademark of The Qt Company.