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!
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.
Re: How to send email and attachement via default email client
Re: How to send email and attachement via default email client