How can a Qt C++ app request the OS to send email with a specific subject, body and possibly an attachment(s) files? It should be dispatched using the configured default email client.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve written a small component that handles attachments too. It creates a temporary .eml file filled with the content that you provide to the Email class and opens the default email client with openInDefaultProgram(). The API should be self explaining, but if you have any problems, please don’t hesitate to contact me 🙂
https://github.com/picaschaf/qt-email