QMessageService().send method does not send message.



  • 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");
    

    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.