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

Viktor Engelmann viktor.engelmann at qt.io
Tue Aug 16 09:56:35 CEST 2016


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


On 16.08.2016 06:52, Thiago Macieira wrote:
> Em terça-feira, 16 de agosto de 2016, às 00:49:03 PDT, Henry Skoglund > Well 
> at least Qt does something right, I just tested on my Mac, Qt 5.7
>> and Thunderbird, "line1" and "line2" show nice line breaks. So far, I
>> tested on Ubuntu 14.04, 16.04 and now OSX, all ok with "line1" and
>> "line2" on separate lines.
>> But in all cases the email client is Thunderbird, perhaps that matters...
> The important difference here is that you tested on your Mac. The 
> implementation is completely different there.
>

-- 


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/5e1d24e7/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/5e1d24e7/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/5e1d24e7/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/5e1d24e7/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/5e1d24e7/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/5e1d24e7/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/5e1d24e7/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/5e1d24e7/attachment.vcf>


More information about the Interest mailing list