Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Send SMS saves message in drafts
Forum Updated to NodeBB v4.3 + New Features

Qt Send SMS saves message in drafts

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 5.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yannifan
    wrote on last edited by
    #1

    Hello

    Im using the following code to send SMS

    @QMessageAddress addr;
    QMessage message;
    QString to;
    bool result;
    to = aContact.detail(QContactPhoneNumber:efinitionName).value(QContactPhoneNumber::FieldNumber);
    addr.setType(QMessageAddress::Phone);
    addr.setAddressee(to);
    message.setBody(GetMessageText());
    message.setTo(addr);
    message.setType(QMessage::Sms);
    result = iSystemMessageManager.send(message);@

    iSystemMessageManager is an object of QMessageService.

    However on deployin the code on the phone, the message is stored in drafts folder and doesnt go out. What may be wrong

    Thanks

    Edit: fixed title to something readable

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      What kind of phone are you using?

      Could you please set a proper title for your post?

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yannifan
        wrote on last edited by
        #3

        Sorry abt the title. Corrected.

        Am using Nokia X6

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          Hi,

          Have you tried the following example at Forum Nokia: "How to send and receive messages in Qt for Symbian":http://wiki.forum.nokia.com/index.php/How_to_send_and_receive_messages_in_Qt_for_Symbian ?

          The other option is to use "Symbian C++ code just to send SMS":http://wiki.forum.nokia.com/index.php/CS001307_-_Symbian_C++:_Sending_an_SMS

          Best regards,
          Leon

          P.S.
          Please note that both examples require NetworkServices capability!

          http://anavi.org/

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yannifan
            wrote on last edited by
            #5

            Thanks.
            I was missing NetworkServices capability. works now :)

            I have another doubt though.
            How can i send multiple sms;s at once.

            I understand single object of QMessageService can send only 1 sms at a time.
            Im using

            iSystemMessageManager[i].send(message)
            where iSystemMessageManager is QMessageService object.
            But no luck.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              leon.anavi
              wrote on last edited by
              #6

              [quote author="yannifan" date="1303028540"]Thanks.
              I have another doubt though.
              How can i send multiple sms;s at once.
              [/quote]

              Hi,

              Although I have not tested it myself. In my opinion you should be able to send sequence of SMS one after another. Have tried to create a method for sending and the call it multiple times with different arguments?

              Regards,
              Leon

              http://anavi.org/

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved