Click here to Skip to main content
15,894,630 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,
I have a mobile website.
When trying to send SMS via an SMS URL on htc mobile, I receive an "Invalid Recipient" error
but it works fine on other tested mobiles

sms url example:

Send By SMS
Send By SMS

Please help as soon as possible.
Posted
Comments
Sandip.Nascar 30-Sep-12 1:29am    
Are you posting the url through mobile browser? After you enter the url and go further, what is the url (specially the querystring values)? Paste the querystring values here.

The url you posted under "Send by SMS" link seems to be incomplete
Ahmad Safwat 30-Sep-12 6:50am    
Sorry, I've pasted the url in my original post but Codeproject has formatted url automatically
here you are:

<a href="sms:?body=TextText">Send By SMS</a>
<a href="sms:+123456789?body=TextText">Send By SMS</a>

The hyperlink is in my website page, when user clicks on the hyperlink, it open a new sms message with body of "TextText" for example.

It works fine on other tested mobiles, but htc
Sandeep Mewara 30-Sep-12 3:25am    
Did you talk to mobile website guys if there is any known issue with HTC mobile?
Sandip.Nascar 12-Oct-12 8:44am    
You are getting invalid recipient, that means the issue is with the mobile number. My rough guess is the "+" sign. I think, in htc, + is encoded to somewhat different character before sending it to payment gateway.
Check your service provider development guy, whether + is is a must. I have used several service provider and I see + is not mandatory. You can go with the isd code + mobile number.
Something with the "+" character.
Ahmad Safwat 12-Oct-12 10:42am    
Thank you very much for reply..
But I've tried without "+" and without mumber at all, but the problem still exist

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900