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

2016-08-16 Thread Thiago Macieira
On terça-feira, 16 de agosto de 2016 21:21:55 PDT Bernhard Lindner wrote: > > Please try xdg-open on the command-line with that URL. My guess is that it > > will fail too, in which case it's not Qt's fault. > > It fails in the same way: Body set but no line break. > I also tried KMail directly:

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

2016-08-16 Thread Bernhard Lindner
> Please try xdg-open on the command-line with that URL. My guess is that it > will fail too, in which case it's not Qt's fault. It fails in the same way: Body set but no line break. I also tried KMail directly: Body set but no line break. So it is probably a problem of KMail. I am using version

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

2016-08-16 Thread Bernhard Lindner
> this opened kmail with the recipient, subject and body being set > correctly (with line break) Which KMail version? -- Regards, Bernhard Lindner signature.asc Description: This is a digitally signed message part. ___ Interest mailing list

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

2016-08-16 Thread Viktor Engelmann
I have also tested the original code QDesktopServices::openUrl(QUrl("mailto:?to=t...@test.com=Test=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

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

2016-08-16 Thread Henry Skoglund
On 2016-08-16 09:56, Viktor Engelmann wrote: I tried xdg-open "mailto:?to=t...@test.com=test=line1%0D%0Aline2; this opened kmail with the recipient, subject and body being set correctly (with line break) thunderbird "mailto:?to=t...@test.com=test=line1%0D%0Aline2; also worked. I'm using

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

2016-08-16 Thread Viktor Engelmann
I tried xdg-open "mailto:?to=t...@test.com=test=line1%0D%0Aline2; this opened kmail with the recipient, subject and body being set correctly (with line break) thunderbird "mailto:?to=t...@test.com=test=line1%0D%0Aline2; also worked. I'm using Linux Mint 17.3 with KDE 4.14.2. Viktor On

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

2016-08-15 Thread Thiago Macieira
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

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

2016-08-15 Thread Henry Skoglund
On 2016-08-16 00:14, Bernhard Lindner wrote: I can't confirm that it works. I tried on the command-line with xdg-open and by directly clicking the link above in KMail. Neither time was the body present at all. When using the link in the mail, it doesn't work for me too. When clicking the same

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

2016-08-15 Thread Bernhard Lindner
> I can't confirm that it works. I tried on the command-line with xdg-open and > by directly clicking the link above in KMail. Neither time was the body > present at all. When using the link in the mail, it doesn't work for me too. When clicking the same link in a local html file it works. Very

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

2016-08-15 Thread Thiago Macieira
Em segunda-feira, 15 de agosto de 2016, às 20:29:16 PDT, Bernhard Lindner escreveu: > It seems not to be an KMail issue because when writing the following into a > HTML document, opening it in Firefox and clicking the link in the browser, > it does exactly what I want (including line breaks in

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

2016-08-15 Thread Henry Skoglund
On 2016-08-15 20:29, Bernhard Lindner wrote: Hi! I tried to send an e-mail with a prepared subject, receiver and body using Qt. The mail shall open in the system default mail client. I am testing on Linux with KMail and Qt 5.5. This is the code I intended to use:

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

2016-08-15 Thread Bernhard Lindner
Hi! I tried to send an e-mail with a prepared subject, receiver and body using Qt. The mail shall open in the system default mail client. I am testing on Linux with KMail and Qt 5.5. This is the code I intended to use: QDesktopServices::openUrl(QUrl("mailto:?