×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    81

    Smile [moved] read number for sending sms?

    Hi All Respected,
    I am done to read notify and body of sending sms, but I could not read the recipients number.
    Any one who has some idea or view please guide me
    I am working in S60 2nd 8.1a sdk.
    Thansk

    I am using such approch, please tell me where i doing wrong;
    CArrayPtrFlat<CSmsNumber>& ss1 = iSmsMtm->SmsHeader().Recipients();
    TInt mCount = header.Recipients().Count();
    inline CArrayPtrFlat< CSmsNumber > &Recipients();

    Bye
    Regards Rajat.
    Last edited by mysilversir; 2009-03-24 at 07:28.

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

    Re: read number for sending sms?

    You need to use it like as follows:

    Code:
    CSmsHeader& header = iSmsMtm->SmsHeader();
    TPtrC from = header.FromAddress();
    See this Wiki article: SMS Operations
    Nokia Developer Wiki Moderation team

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

    Re: read number for sending sms?

    note: this post is no way related to carbide.c++ IDE. please try using a correct section in DiBo

  4. #4
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    81

    Smile Re: read number for sending sms?

    Hi kiran10182,
    Thanks for soon reply, I have used it, but what can we do when more than one recipients put with a sms.
    Please if you have any idea, guide me
    Thanks
    Bye
    Regards Rajat.

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

    Re: read number for sending sms?

    Quote Originally Posted by mysilversir View Post
    Hi kiran10182,
    Thanks for soon reply, I have used it, but what can we do when more than one recipients put with a sms.
    Please if you have any idea, guide me
    Thanks
    Bye
    Regards Rajat.
    You cannot have multiple recipients when you receive a message, Inbox will have different entry for different recipients. Same applies when you send an SMS to multiple recipients, they will have different entry in the Sent Item folder.

    Let me know if I understood it wrong.
    Nokia Developer Wiki Moderation team

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

    Re: read number for sending sms?

    Even if you add more then one recipients to sms that you are trying to send. it will be separated to different SMS's contact one recipient per sms.

  7. #7
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    81

    Smile Re: [moved] read number for sending sms?

    hi skumar_rao,
    Yes you are saying right, that one by one recipients will get the individual sms, but we can get the info that how many recipients we have included in the sending sms, that is what i want to make log.
    whenever we send sms from own device to include more than one recipients, that thing i want to make log that how many recipients i have included in the current sending sms.
    I hope you got my point.
    thanks
    Bye
    Rajat

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

    Re: [moved] read number for sending sms?

    yes, i got that. but AFAIk there is no out. you might not get it as that is handled by Messaging MTM

  9. #9
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    81

    Smile Re: [moved] read number for sending sms?

    hi skumar_rao,
    Okay, if you are saying that you could get all, than send me those lines where you did try and get all recipients.
    I am waiting, please guide me.
    Bye
    Rajat

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

    Re: [moved] read number for sending sms?

    Quote Originally Posted by mysilversir View Post
    hi skumar_rao,
    Okay, if you are saying that you could get all, than send me those lines where you did try and get all recipients.
    I am waiting, please guide me.
    Bye
    Rajat
    Hello Rajat.. did i say any where that i can get with out being part of Messaging MTM ?

  11. #11
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    81

    Smile Re: [moved] read number for sending sms?

    hi skumar_rao,
    Okay Sir ji, you are saying right, would u like to send me the code where you get all recipients of sending message.
    Please try to send me as soon as possible.
    Thanks
    Rajat.

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

    Re: [moved] read number for sending sms?

    Quote Originally Posted by mysilversir View Post
    Okay Sir ji, you are saying right, would u like to send me the code where you get all recipients of sending message.
    Please try to send me as soon as possible.
    Thanks
    Rajat.
    Try it on your own. Read the sent item folder for the recent messages. All the sent messages will have different id and I am not sure if there is any special mapping in case you are sending to multiple people from the single message.
    Nokia Developer Wiki Moderation team

  13. #13
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: [moved] read number for sending sms?

    If you simply open the Sent items folder in the built-in Messaging application, you will see that SMS-s sent to multiple recipients are listed as multiple SMS-s with single recipients. Personally I would not think that Messaging does anything more than simply reading the sent items folder of the Message Server, thus most probably you will really find multiple entries, thus you can simply count them, and you are ready.

Similar Threads

  1. Specifying port number while sending SMS?
    By sunil_bhambani123 in forum Mobile Java Networking & Messaging & Security
    Replies: 18
    Last Post: 2009-03-24, 06:09
  2. Recipient number from outgoing sms
    By jobin.tech in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-09-09, 13:33
  3. receivng SMS from particular number
    By dips05 in forum Symbian
    Replies: 1
    Last Post: 2005-10-27, 10:43
  4. how to email sms specifying a port number?
    By dukehoops in forum General Messaging
    Replies: 2
    Last Post: 2004-04-27, 12:38
  5. Replies: 0
    Last Post: 2003-12-30, 20:32

Posting Permissions

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