Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-202

Sending SMS using messaging puts the message into draft

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 1.0.1
    • 1.0.0
    • Messaging
    • None
    • Qt Mobility Beta 1 for Symbian
    • 602cd5098d41da23247847fef51c441f8d21ab5b

      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); }}

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sanders Don Sanders (closed Nokia identity) (Inactive)
            minshin Minjung Shin (closed Nokia identity) (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes