×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    34

    Unhappy SMS Sending in QT Mobility just doesnt work!!!

    Its very dejecting that such a basic functionality doesn't work in Qt Mobility.

    here's my code snippet...

    QMessage toSendMsg;
    toSendMsg.setType(QMessage::Sms);
    toSendMsg.setParentAccountId(QMessageAccount::defaultAccount(QMessage::Sms));
    toSendMsg.setTo(QMessageAddress(QMessageAddress::Phone, "+919740064265"));
    toSendMsg.setBody(m_settingItemList->getEntryItem(str)->getAutoReplyText());
    service.send(toSendMsg);


    This just puts the message in drafts. After going thru a couple of links I tried to apply a hack of changing type from SMS to MMS.

    QMessage toSendMsg;
    // Due to this bug http://bugreports.qt.nokia.com/browse/QTMOBILITY-64
    //lets set the type to MMS
    toSendMsg.setType(QMessage::Mms);
    toSendMsg.setParentAccountId(QMessageAccount::defaultAccount(QMessage::Mms));
    toSendMsg.setTo(QMessageAddress(QMessageAddress::Phone,"+919740064265"));
    toSendMsg.setBody(m_settingItemList->getEntryItem(str)->getAutoReplyText());
    service.send(toSendMsg);

    This just doesn't send the message.

    I am using Nokia Qt SDK 1.0.1 (I believe it has Qt 4.6.3 and Qt Mobility 1.0.2)


    Any help in this respect will be very useful.
    Thanks in advance.

    -DJ7

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: SMS Sending in QT Mobility just doesnt work!!!

    According to the bug it was fixed in Qt Mobility 1.0.1 and Nokia Qt SDK contains 1.0.2 as you've correctly pointed.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    34

    Re: SMS Sending in QT Mobility just doesnt work!!!

    Found the problem. I just had to add "NetworkServices" to the capability list.

Similar Threads

  1. Sending Email Using Qt Mobility
    By umakamat in forum [Archived] Qt Mobility Project
    Replies: 7
    Last Post: 2012-02-16, 07:51
  2. Able to send MMS but not SMS using Qt Mobility Messenger
    By Zedster in forum [Archived] Qt Mobility Project
    Replies: 10
    Last Post: 2010-12-16, 12:16
  3. Replies: 21
    Last Post: 2010-11-17, 04:44
  4. Remote compiler wont work with Qt Mobility examples
    By jimgilmour1 in forum [Archived] Qt SDKs and Tools
    Replies: 2
    Last Post: 2010-07-05, 09:14
  5. Intercept SMS using Qt Mobility Project?
    By muqawem in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-05-14, 03:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •