[Interest] Sending mail with line breaks using QDesktopServices::openUrl

Viktor Engelmann viktor.engelmann at qt.io
Tue Aug 16 15:02:52 CEST 2016


I have also tested the original code

QDesktopServices::openUrl(QUrl("mailto:?to=test at 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=test at 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=test at 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 at 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.Engelmann at 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>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_logo_with_text_green_rgb_400x141.png
Type: image/png
Size: 16849 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_facebook.png
Type: image/png
Size: 1407 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_twitter.png
Type: image/png
Size: 1778 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_linkedin.png
Type: image/png
Size: 1532 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_googleplus.png
Type: image/png
Size: 1957 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt_youtube.png
Type: image/png
Size: 1610 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: viktor_engelmann.vcf
Type: text/x-vcard
Size: 271 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160816/3c01011c/attachment.vcf>


More information about the Interest mailing list