I am trying to send Instant message(IM) through N900 using PySide & PyQtMobility. I am getting QMessageService sending failed. The code is below:<div><br></div><div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>from QtMobility.Messaging import *</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>from PySide.QtCore import *</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>import sys</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>from PyQt4 import QtCore</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>import dbus</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i><br></i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>app = QCoreApplication(sys.argv)</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i><br></i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>in_msg_add = QMessageAddress(QMessageAddress.InstantMessage, QtCore.QString("<a href="mailto:user_to_recieve@gmail.com">user_to_recieve@gmail.com</a>"))</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>msg = QMessage()</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>msg.setType(QMessage.InstantMessage)</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>msg.setTo(in_msg_add)</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>msg.setBody(QtCore.QString("Hi Hello"))</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i><br></i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>'''send message'''</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>sender = QMessageService()</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>if (sender.send(msg)):</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i> print "success"</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i>else:</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(255, 255, 51);"><i> print "fail"</i></span></div><div><br></div><div>I am getting the message sending failed error as below:</div><div><div><i><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)</span></i></div>
<div><i><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">sync eventloop exit</span></i></div><div><i><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">QMessageService::send</span></i></div>
<div><i><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">send returns= false</span></i></div><div><i><span class="Apple-style-span" style="background-color: rgb(255, 153, 102);">fail</span></i></div>
</div><div><br></div><div>Any help would be greatly appreciated.</div><div>-Praveen</div><div> </div></div>