
Originally Posted by
p.bouda
Hi,
I am trying to generate an email draft through the QDestopServices on Maemo, like this:
QDesktopServices:

penUrl("mailto:?body="+text);
This works fine on my desktop, but on Maemo the browser starts first, the "mailto:" link is opened as URL and then another window opens with the new mail. Is there any plan to change this behaviour in future Qt releases?
I do not observe such behaviour.

Originally Posted by
p.bouda
Is there currently another possibility to start a new mail with a predefined text?
You can use DBus.

Originally Posted by
p.bouda
Also: I want to use the same call for SMS:
QDesktopServices:

penUrl("sms:?body="+text);
This does not work at all without recipient, the message can not be sent. Like with mail, the browser is started, then a SMS appears but there is no possibility to add a recipient. Again: Will this work sometimes? What are the alternatives?
Peter
Like with email only messaging UI is started and actually this is messaging UI problem as you can verify it with DBus call:
Code:
dbus-send --dest='com.nokia.MessagingUI' \
--type='method_call' --print-reply \
/com/nokia/MessagingUI \
com.nokia.MessagingUI.messaging_ui_interface_start_sms \
string:"sms:?body=Test sms"