[Qt-interest] how to send email with attachment using client's email application?
Raul Metsma
raul at innovaatik.ee
Mon Apr 4 11:19:50 CEST 2011
https://svn.eesti.ee/projektid/idkaart_public/3.3/qdigidoc/common/Common.cpp
look at Common::mailTo( const QUrl &url )
and initialize QDesktopServices::setUrlHandler( "mailto", this, "mailTo" );
On mac thunderbird can only open attachment when programm is closed (Thunderbird limitation)
Raul
On 02.04.2011, at 19:27, James Yan wrote:
> 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.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110404/24176f98/attachment.html
More information about the Qt-interest-old
mailing list