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. QMessageService().send method does not send message.
QtWS25 Last Chance

QMessageService().send method does not send message.

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 3.0k Views
  • 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.
  • S Offline
    S Offline
    spnvelvet
    wrote on last edited by
    #1

    I am using following code to create and send a message.
    Problem I am facing is that message is not sent. Instead it is stored in drafts folder.
    Value return by send method is true (No error).

    @

    QtMobility::QMessage vMsg;
    vMsg.setParentAccountId(QtMobility::QMessageAccount::defaultAccount(QtMobility::QMessage::Sms));
    vMsg.setType(QtMobility::QMessage::Sms);
    vMsg.setBody(ui->pteMsg->toPlainText());
    vMsg.setTo(QtMobility::QMessageAddress(QtMobility::QMessageAddress::Phone,"+923008778077"));
    bool vStatus=QtMobility::QMessageService().send(vMsg);
    if(vStatus==false)
        ui->lMsg->setText("Error");
    

    @

    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