Hi, For an example of how to send SMS messages please see the serviceactions example.
Kind regards, Don Sanders On 2010-06-22T20:07:00, ext Joachim Rolland-Marmier wrote: > hi, > > I'm trying to send a sms using qtmobility on a n900. > > I started with this example : > http://wiki.forum.nokia.com/index.php/Sending_an_SMS_in_Qt > > The fuction call to send fails and _messageService->error() returns > QMessageManager::InvalidId > QMessageAccount::defaultAccount(QMessage::Sms) actually returns an empty > string. > > I got slightly better results by setting the account Id with : > QMessageAccountId("ring") > send() still fails but _messageService->error() returns > QMessageManager::ConstraintFailure. > > I have no idea what it actually means but I was thinking that I need > to set the FROM field of the message but what should it be set to ? > I couldn't find any info. > > By using libtpsession directly, I'm able to send a sms with these two > lines but the messaging application also starts somehow. > TpSession * tps = TpSession::instance(); > tps->sendMessageToAddress("ring","number", "message"); > > I'm using libqtm-* 1.0.0-maemo1+0m5 and libtpsession 0.1-2+0m5 > > If you have any info, I would appreciate. > _______________________________________________ > Qt-mobility-feedback mailing list > [email protected] > http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback > _______________________________________________ Qt-mobility-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback
