PDA

View Full Version : Attaching file at the time of opening default email client [ Qt Desktop Service ]



damodharan
27th August 2010, 11:36
Dear all,

When I click 'email photo', the default email client should open up and the photo currently displayed in the gallery is automatically attached.

any one have idea about this how to attach,

i done mailto and subject but attachment is not happening automatically according to the path ?

QDesktopServices:OpenUrl(QUrl("mailto:?subject=&body=&attach="));

he below code not working for attachment
what wrong in that ?

QDesktopServices::OpenUrl(QUrl("mailto:desktop@testing.com?subject=Desktop Software&attach=/C:/Qt /testing/release/testing1.txt&body=This is Desktop Software"));

QDesktopServices::OpenUrl(QUrl("mailto:desktop@testing.com?subject=Desktop Software&attach=\C:\Qt\testing\release\testing1.txt&body=This is Desktop Software"));

tbscope
27th August 2010, 13:30
&attachment="..."