Archived:CSendUi cannot resolve phone number when a name is specified in To field (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Article Metadata
Compatibility
Platform(s): S60 2nd Edition
S60 3rd Edition
S60 3rd Edition
Article
Created: User:Technical writer 1
(08 Feb 2007)
Last edited: hamishwillee
(18 Jun 2012)
Description
Trying to use CSendUi::CreateAndSendMessageL() to create and send an SMS with the 'To:' field filled in with a phone number works as expected. However, using a name instead of a phone number returns the error message 'Invalid Recipient Information' even if the name exists in the address book and has a phone number assigned to it.
Solution
SendUi does not provide a feature for automatic lookup of phone numbers or other contact information.
If the name of the receiver is known when launching the SMS editor, then it is possible to use the Contacts API to search for the phone number(s) assigned to the contact.


(no comments yet)