Results 1 to 4 of 4

Thread: How to send email and attachement via default email client

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Thumbs down How to send email and attachement via default email client

    Hello,

    In my QT application, I would like to send an email and an attachement via the default email client program so that I do not need to handle mail server, port ....

    My problems are:

    - How to finding out the default email client in current OS

    - what arguments to pass to it to in order to attach a file to it

    - how to start the program. it is likely to use QProcess::startDetached.

    Is there anyone have the experience to do it?

    thank you in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: How to send email and attachement via default email client

    Hmmm, you could maybe subclass QSettings and then separate the code according to OS (with #ifdefs) and for Windows, you could search in registry, for Linux in ini files, ... It is just a proposal.
    Qt 5.3 Opensource & Creator 3.1.2

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

    Default Re: How to send email and attachement via default email client

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to send email and attachement via default email client


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.