Wrote on behalf of Hendy Irawan(hendy@soluvas.com)
??I am using Qt Mobility Beta 1 for Symbian and deploying directly to my phone with self sign from Qt creator (i have also used open sign to test if that would help, but no luck)
What i am trying to achieve is a simple app that just sends a hard coded message to a specified number, nothing fancy just trying out the functionality. The problem seems to be that Whenever sending a SMS it gets put into the draft folder and stays there, however MMS works just fine. I am not completely sure where the problem lies, i tried looking inside the QMessageService source file but didn't find anything unusual. It just seems to me that its probably not a coding error of some sort since then MMS would also not work.
What could i be missing here? Here is the code i've used:
??
{{QMap<QString, QPair<QMessage::Type, QMessageAccountId> > accountDetails;
QMessageService theService;
QMessageManager manager;
foreach(const QMessageAccountId &id, manager.queryAccounts())
{ QMessageAccount account(id); accountDetails.insert(name, qMakePair(type, account.id())); } QMessage theMessage; QPair<QMessage::Type,QMessageAccountId> details = accountDetails["SMS"]; // chaning this to MMS makes enables sending theMessage.setType(details.first); theMessage.setParentAccountId(details.second); theMessage.setTo(QMessageAddress(QMessageAddress::Phone,"0404452552")); theMessage.setBody("test message text"); bool success = theService.send(theMessage); }}- is replaced by
-
QTMOBILITY-64 Sms message is not send in symbian mobile. The message stays in draft folder.
-
- Closed
-