I have also tested the original code

QDesktopServices::openUrl(QUrl("mailto:?to=t...@test.com&subject=Test&body=line1%0D%0Aline2";,
QUrl::TolerantMode));

on Qt dev branch and it works. It opens kmail and creates 2 lines.



On 16.08.2016 14:44, Henry Skoglund wrote:
> On 2016-08-16 09:56, Viktor Engelmann wrote:
>> I tried
>>
>> xdg-open "mailto:?to=t...@test.com&subject=test&body=line1%0D%0Aline2";
>>
>> this opened kmail with the recipient, subject and body being set
>> correctly (with line break)
>>
>> thunderbird
>> "mailto:?to=t...@test.com&subject=test&body=line1%0D%0Aline2";
>>
>> also worked. I'm using Linux Mint 17.3 with KDE 4.14.2.
>>
>> Viktor
>>
>
> Just to confirm, I also tested on Linux Mint 17.3 and Qt works fine as
> there as well (with line break).
> Screen shot: http://www.tungware.com/kmail.png
>
> But what Linux flavor is the culprit/wreaking havoc on the line
> breaks, so far Ubuntu and Mint seems out of the picture.
>
> Rgrds Henry
>
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 


Viktor Engelmann
Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
viktor.engelm...@qt.io
+49 151 26784521
http://qt.io

Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
<http://qt.io>
<http://www.facebook.com/Qt>    <http://www.twitter.com/qtproject>
<https://www.linkedin.com/company/the-qt-company/>
<https://plus.google.com/104580575722059274792>
<https://www.youtube.com/QtStudios>

<<attachment: viktor_engelmann.vcf>>

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to