[Qt-interest] how to send email with attachment using client's email application?

James Yan james.pizza at gmail.com
Sat Apr 2 18:27:51 CEST 2011


Hey,

what i want to do is : click the "email" button, then a new mail composer window show up with subject/body, and the special picture provided by my program.

I've try:
===
QDesktopServices::openUrl(QUrl("mailto:user at foo.com?subject=Test&body=Just a test&attachment=/test.jpg", QUrl::TolerantMode));
===
but, the test.jpg just doesn't show up.

any suggestion?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110403/ff5b396f/attachment.html 


More information about the Qt-interest-old mailing list