Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QDesktopServices::openUrl(QUrl("mailto => Trigger the send process
Flaming Moe last edited by
i want to send an Email via the QDesktopServices. I have installed thunderbird.
When i run the programm thunderbirds opens up the corresponding mask to send an email with the coded topic and text
QDesktopServices::openUrl(QUrl("mailto:email@example.com?subject=Just a test",QUrl::TolerantMode));
I need to trigger the sending process of the mail. Is it possible, and in case, how?
mcosta last edited by
IMO is not possible to be notified by the mail sending using this technique.
If you really need to know if and when the mail is sent, you need to use a 3rd party library to send emails
For instance I fond this https://github.com/bluetiger9/SmtpClient-for-Qt (but I never used).
Also you can have a look to https://forum.qt.io/topic/29280/simple-tls-ssl-suppoerted-smtp-client-for-qt5