×

Discussion Board

Results 1 to 3 of 3

Thread: Send Sms

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    1

    Unhappy Send Sms

    HI,
    i want sent a sms to a perticular number and i am trying the below code for this,i want know how to write some text in the iRichtext instance of CRichText , in msg.SetBodyTextL(iRichtext);
    Plz guide me, in urgent need...

    Thanks in advance
    Fairoz



    sendsms(TDes16 &aRecipientNumber)
    {
    CRichText iRichtext;
    // Open a connection with the SendAs server
    RSendAs saSrv;
    saSrv.Connect();
    CleanupClosePushL(saSrv);

    // Create your message
    RSendAsMessage msg;
    msg.CreateL(saSrv, KSenduiMtmSmsUid);
    CleanupClosePushL(msg);
    msg.AddRecipientL(aRecipientNumber,RSendAsMessage::ESendAsRecipientTo);
    msg.SetBodyTextL(iRichtext);

    // Send the message
    msg.SendMessageAndCloseL();

    // Cleanup
    CleanupStack::Pop(&msg);
    CleanupStack::PopAndDestroy(&saSrv);
    }
    // End of File

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

    Re: Send Sms

    have a look in any Editor exmaple found from the wiki, or SDk documentation for the CRichText, should get you started pretty well.

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: Send Sms


Similar Threads

  1. AT commands to send sms from pc by n70
    By cristiandaffy in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2007-12-07, 15:38
  2. Replies: 6
    Last Post: 2007-11-20, 13:09
  3. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  4. can i send SMS automatically?
    By vhepeter2005 in forum General Messaging
    Replies: 3
    Last Post: 2007-04-28, 09:23
  5. 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
  •  
×