×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    11

    Unhappy problem sending SMS in Qt... help please :(

    hi everyone...

    I developing an application for send a text SMS, but the message is created on DraftsFolder and never is sent...
    please I need help...

    I'm using the following code:

    Code:
    bool firstApp::sendSms(QString bodyMsg, QString phoneNum)
    {
        if(!m_service)
            m_service = new QMessageService(this);
        QMessage smsMsg;
        smsMsg.setType(QMessage::Sms);
        smsMsg.setParentAccountId(QMessageAccount::defaultAccount(QMessage::Sms));
        smsMsg.setTo(QMessageAddress(QMessageAddress::Phone, phoneNum));
        smsMsg.setBody(bodyMsg);
    
        return m_service->send(smsMsg);
    }
    The message is created but isn't sent because is created on DraftsFolder

    Please I need know where is the problem in the code or I need other code to send a SMS please...

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: problem sending SMS in Qt... help please :(

    How to send SMS in mobility see this compare your code : http://wiki.forum.nokia.com/index.ph...ng_Qt_Mobility

    And to open sms from the inbox folder see this : http://wiki.forum.nokia.com/index.ph...x_folder_in_Qt

    In you case first you have to open the Draft folder and then need to send SMS.

    Best regards,
    RaHuL

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    11

    Re: problem sending SMS in Qt... help please :(

    Thanks @rahulvala

    I test the code on the first link but the Qt Creator dont build the app because say "No such file or directory" on the line where is included the qtmessaging.h....
    I want include only QMessageServiceAction but isnt found too, only exist the QMessageService and is the code that i using

    Im using Qt Creator 1.3.85 (2.0.0-rc1)

    With the second link I trying get the message from the DraftsFolder and to use QMessageService to send it.

    Thanks and I await your comments on those QMessageServiceAction
    Last edited by isantosp; 2010-07-03 at 18:08.

Similar Threads

  1. Sending SMS with multiple recipients slower then sending separate SMS
    By Zeddeh in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-05-12, 10:46
  2. sms sending problem
    By prashantchougule.cs in forum Symbian
    Replies: 1
    Last Post: 2009-12-02, 09:01
  3. Problem sending sms to address of a recieved sms
    By serranozafra in forum Symbian
    Replies: 30
    Last Post: 2008-10-30, 09:13
  4. SMS sending problem
    By jini_1 in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-13, 06: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
  •  
×