How to programmatically add attachments to emails in Qt
HI to everyone...........
I hope all are doing good..........
I have an issue.....How to add the local file automatically to Outlook 2007 in Qt
This feature is working for C# and VB.Net
In C# and VB.Net , they used built-in function to add attachments to emails
I searched in Qt for Built in Function , but its not there..
If any one of you knows this feature..plese help me.. or in some other solution..please help me.
Qt code i used here is:
QDesktopServices::openUrl(QUrl("mailto:?Attached=" "C:\Right.png"" "));
It is giving the Command line argument error.
I hope some one will help in this feature...
Thanks in Advance..
Praveena
KeepSmiling:)..BeHappy..alwalz
Re: How to programmatically add attachments to emails in Qt
hi,
i think that outlook does not support attachement in mailto: tag. you have to start a new proces (QProcess) and add the attached file
as an argument.
regards,
jh
Re: How to programmatically add attachments to emails in Qt
you can't send mails with attachments with mailto....
you need to create an activex object of Outlook... and create the email with attachments from there...
Anyway is not a easy task...
you should see examples and utils about activex in qt
....
maybe the qprocess option is enough for you