Re: RE : Re: Send Email with attachment with my Qt Application

2016-11-18 Thread Boudhayan Gupta
QMake based projects later, but KService itself must be built with CMake. > Message d'origine > De : Christoph Feck > Date : 16/11/2016 21:36 (GMT+01:00) > À : kde-frameworks-devel@kde.org > Objet : Re: Send Email with attachment with my Qt Application >

RE : Re: Send Email with attachment with my Qt Application

2016-11-18 Thread Charles-Élie G
Send Email with attachment with my Qt Application On 16.11.2016 19:58, Boudhayan Gupta wrote: > KService, and all of KDE software written in C++/Qt, are configured > with CMake and not QMake. There's no .pro files, but CMakeLists.txt > files. This is not true. KDE Frameworks support b

Re: Send Email with attachment with my Qt Application

2016-11-16 Thread Christoph Feck
On 16.11.2016 19:58, Boudhayan Gupta wrote: KService, and all of KDE software written in C++/Qt, are configured with CMake and not QMake. There's no .pro files, but CMakeLists.txt files. This is not true. KDE Frameworks support both qmake and cmake. On the API pages, the required instructions f

Re: Send Email with attachment with my Qt Application

2016-11-16 Thread Boudhayan Gupta
Hi Charles-Elie, KService, and all of KDE software written in C++/Qt, are configured with CMake and not QMake. There's no .pro files, but CMakeLists.txt files. You'll need to install CMake, and build by doing: cd /path/to/sources cmake . make && sudo make install Hope this helps. Thanks, Boudha

Re: Send Email with attachment with my Qt Application

2016-11-16 Thread Charles-Elie Gentil
In fact I did not understand how to build KService, but I think I have found: I probably have to create the .pro file myself. For the direct use of invokMailer, I have already tried but I can not use ShellExecute on my Mac. But I will try again. Best regards, Charlie m...@jiyuusoft.net http:/

Re: Send Email with attachment with my Qt Application

2016-11-16 Thread Charles-Elie Gentil
Hello, I try this solution with mailto, but adding attachment don’t work with this command Best regards, Charlie m...@jiyuusoft.net http://blog.jiyuusoft.net > Le 16 nov. 2016 à 17:18, David Edmundson a écrit > : > > > ​You can just use QDesktopServices::openUrl() with a mailto: URL. > >

Re: Send Email with attachment with my Qt Application

2016-11-16 Thread David Edmundson
Sorry, didn't read that second line properly about attachments properly. What error do you get when buildling kservice? You may find this tool that builds dependencies useful: https://inqlude.org. Alternatively, you can probably just extract this one invokeMailer here: https://api.kde.org/framew

Re: Send Email with attachment with my Qt Application

2016-11-16 Thread David Edmundson
​You can just use QDesktopServices::openUrl() with a mailto: URL. http://doc.qt.io/qt-5/qdesktopservices.html#openUrl David

Send Email with attachment with my Qt Application

2016-11-16 Thread Charles-Elie Gentil
Hi, I work on a Qt application with which I have to send an email with an attachment. I want use the native client of device. Unfortunately, mailto can’t send attachment. Also I have looking the source code of Calligra and it seem that it would be possible to use KToolInvocation::invokMailer.