×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    230

    Question Background SMS Send s60 2nd Edition

    Hi all,

    I have created a string that I have fetched from different edwin fields in dialog and I want to send that string as background SMS.

    I m using 2nd edition SDK and I have referred previous thread of FN, in which there is good description to do the same with 3rd edition. But there is no such classes in 2nd edition.
    It was like this for 3rd edition:
    RSendAs sendAs;
    User::LeaveIfError(sendAs.Connect());
    CleanupClosePushL(sendAs);

    RSendAsMessage sendAsMessage;
    sendAsMessage.CreateL(sendAs, KUidMsgTypeSMS);
    CleanupClosePushL(sendAsMessage);

    // prepare the message
    sendAsMessage.AddRecipientL(aRecipient, RSendAsMessage::ESendAsRecipientTo);
    sendAsMessage.SetBodyTextL(aMessageBody);

    // send the message
    sendAsMessage.SendMessageAndCloseL();

    // sendAsMessage (already closed)
    CleanupStack::Pop();

    // sendAs
    CleanupStack::PopAndDestroy();
    What I should change in this to convert it into 2nd edition?

    Regards
    Symbee

  2. #2
    Super Contributor
    Join Date
    May 2006
    Location
    Beijing,China
    Posts
    1,190

    Re: Background SMS Send s60 2nd Edition

    using CSendAs instead of RSendAs and RSendAsMessage
    Quote Originally Posted by symbee
    Hi all,

    I have created a string that I have fetched from different edwin fields in dialog and I want to send that string as background SMS.

    I m using 2nd edition SDK and I have referred previous thread of FN, in which there is good description to do the same with 3rd edition. But there is no such classes in 2nd edition.
    It was like this for 3rd edition:


    What I should change in this to convert it into 2nd edition?

    Regards
    Symbee

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Background SMS Send s60 2nd Edition

    there are also couple of sms examples available in this forum that shows how to send SMS messages with 2nd & 1st editions.

    yucca

  4. #4
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    230

    Re: Background SMS Send s60 2nd Edition

    Thanks for reply..

    I have referred SendAs example as well as SDK help and I have concluded it in this code:

    iRecipient=HBufC::NewL(KMaxTelephoneNumberLength);
    iRecipient->Des() = _L("9898989898");

    HBufC* aText = StringLoader::LoadLC (R_REGISTRATION_SMS_TEXT);

    sendAs = CSendAs::NewL(*this);
    sendAs->CreateMessageL();


    sendAs->AddRecipientL( iRecipient->Des() );
    sendAs->SetBodyL();<----------const CRichText &
    CleanupClosePushL(sendAs);


    How can I convert my string which is in TBuf<50> and also in _L("Hello") type into Richtext? Any method for that?

    one error I m getting i.e.

    expression syntax error (point of instantiation: 'CformappAppUi::ConstructL()') (instantiating: 'CleanupClose<CSendAs *>::Close(void *)')

    what's that?

    Regards
    Symbee
    Last edited by symbee; 2006-08-03 at 14:19.

  5. #5
    Regular Contributor
    Join Date
    Jun 2006
    Posts
    230

    Re: Background SMS Send s60 2nd Edition

    oh!

    I hadn't include library send.lib!! now that error is not coming but my application closes

    I debug i found that its breaking from sendAs->CreateMessageL();

    plz help!
    Symbee
    Last edited by symbee; 2006-08-04 at 06:32.

  6. #6
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    128

    Re: Background SMS Send s60 2nd Edition

    Hi symbianyucca,

    I searched a lot for sending a sms with Symbian S60 2nd Edition in this forum, i got one. But its not working. I have created a thread regarding this.
    http://discussion.forum.nokia.com/fo...027#post469027

    Please help me to solve this.

    With Regards
    Diptendu
    Thanks & Regards
    Dip
    diptenduster@gmail.com

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: Background SMS Send s60 2nd Edition

    You can try with Message Type Modules. You should look into some interested API set for this purpose. Check "CSmsClientMtm", "CMsvSession" etc... in the SDK help.

    You can also find working examples on Forum Nokia Wiki.

    Check this article: SMS Operations
    Nokia Developer Wiki Moderation team

Similar Threads

  1. S60 2nd edition FP3 SDK reports error in jar file entry
    By iwmonkey in forum Mobile Java Tools & SDKs
    Replies: 12
    Last Post: 2010-03-11, 01:39
  2. SyncML example in S60 2nd Edition SDK
    By Gingah in forum Symbian
    Replies: 1
    Last Post: 2005-04-28, 11:40
  3. Determining used network in s60 2nd edition (6630)
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2004-10-20, 08:58
  4. Replies: 1
    Last Post: 2002-07-23, 14:39

Posting Permissions

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