Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML Mobile
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 13:10pm
Comments
Sandip.Nascar at 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 at 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 at 30-Sep-12 3:25am
   
Did you talk to mobile website guys if there is any known issue with HTC mobile?
Sandip.Nascar at 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 at 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 at 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 at 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
0 mhegazy94 488
1 Sergey Alexandrovich Kryukov 375
2 Kornfeld Eliyahu Peter 285
3 Sibeesh KV 251
4 Gihan Liyanage 189
0 Sergey Alexandrovich Kryukov 6,775
1 OriginalGriff 6,696
2 CPallini 5,345
3 George Jonsson 3,599
4 Gihan Liyanage 2,751


Advertise | Privacy | Mobile
Web03 | 2.8.140922.1 | Last Updated 29 Sep 2012
Copyright © CodeProject, 1999-2014
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