A mailto request opens an empty Chrome window
-
Hi.
I want that a button opens an email client or a browser to send an email to certain email. I've written this slot function:
@void MainWindow::on_actionFeedback_triggered()
{
QDesktopServices::openUrl(QUrl("mailto:danifujii@gmail.com?subject=THeM"));
}
@
The thing is, it opens an empty Chrome window (as i don't have an email client set). But I know from other sites and apps that it is posible to use mail to for browsers.
Thanks. -
and what do you expect to happen when you don't have a mail client installed?
-
-
It works in browsers because they intercept the mailto link and forward you to another site instead opening the local installed mail client.