Click here to Skip to main content
13,351,661 members (41,050 online)
Rate this:
Please Sign up or sign in to 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 29-Sep-12 14:10pm
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
Sandip.Nascar 12-Oct-12 10:54am
without number doesn't makes any sense. Put something like 9198XXXXXXXX instead of +91.....
check your service provider developer reference
Ahmad Safwat 15-Oct-12 18:28pm
I tried before with a test number, but also doesn't work
But even if it works, the goal is to create a message without number :(

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.180111.1 | Last Updated 29 Sep 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100