Jump to content









Photo

Send Sms to UK mobile

sms uk

  • Please log in to reply
14 replies to this topic

#1 smrowe

smrowe

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 13 March 2014 - 09:33 PM

Hi 

i am trying to send a Sms message but message never send,tried on the console i get message sent

but still no joy, its a uk mobile 

 

i tried 447713264242(this is a make up number) but correct amount of numbers

and 4407713264242 still don't get any error code's i get sent ok

but the message never comes.

 

e.g. of code, got it from wizrad

7713264242

 

Please help

 

Thanks

 



#2 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 103 posts
  • LocationMadrid, Spain.

Posted 14 March 2014 - 10:50 AM

Hi,

 

I think the prefix should be written with 00, you can see it in the documentation:

 

https://www.carriots...y_libraries#sms

 

For example: 00447713264242

 

I hope this can help you, and if you have any doubt don't hesitate to ask here.



#3 smrowe

smrowe

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 14 March 2014 - 10:58 PM

Thanks that now Works Perfect..Cheers



#4 hilkof

hilkof

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 03 June 2014 - 01:27 AM

All,

  I am trying to do a similar activity, but send a SMS to the US.  I know the country code for US is 1, but I have been trying permutations (1, 001, etc), but cant seem to get it.  

 

If the phone number is 513-876-7564, what would I put in the beginning to get to the US


Thanks
Fred



#5 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 03 June 2014 - 10:23 AM

Hi hilkof

 

You have to use 0015138767564

 

Note: without "-"

 

 

Enjoy Carriots!



#6 rvrkrishna24

rvrkrishna24

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 16 July 2014 - 01:58 PM

import com.carriots.sdk.utils.Sms
 
def sms = new Sms();
sms.to="00917829277059";  
sms.message="TestMessageFromCarriots";
sms.send();
 
 
I stay in India, and my country code is 91. When I am trying this, this does not work and I am getting some error message. Can somebody help?
 
Thanks.


#7 alvaro

alvaro

    Carriots CTO

  • Administrators
  • 72 posts

Posted 16 July 2014 - 03:20 PM

Hi RK.

 

Can you specify your error message? Thanks.

 

Enjoy Carriots!


Alvaro Everlet

Carriots CTO


#8 rvrkrishna24

rvrkrishna24

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 16 July 2014 - 06:41 PM

Team,

 

The same code above now worked..Not sure what was issue sometime back..Anyways Thanks Much!!!



#9 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 04 August 2014 - 02:23 AM

HI there , I am from malaysia. 0060 0165966xxx it doens't work for me . may i know is it something wrong with the number?



#10 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 04 August 2014 - 07:04 AM

Hi eric.

 

Can you specify your error message?.

Anyway must specify the phone number without spaces

 

Enjoy Carriots!



#11 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 04 August 2014 - 07:09 AM

i dont' see any error message come out. it just saved the setting and then when i send meet the if statement. it doens't send the sms to my  phone. for your info, yes i didn't put in space in that number. 

 

when i change the then expression to email. I work fine. Just the sms not working. i wondering what is the problem



#12 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 04 August 2014 - 07:20 AM

is this the error message you want ?

 

Listener textTempme@eric3231559.eric3231559:startup failed RestrictedScript 6 Invalid variable name Must start with a letter but was At 6 25 line 6 column 25 sms to 0060165966561 1 error



#13 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 05 August 2014 - 06:48 AM

Hello eric.

 

We have made some test with your number and it seems that everything is correct.

You can test your code in Carriots console and see if you get any errors.

 

Attached File  carriots_console.jpg   5.4K   31 downloads

 

Attached File  carriotsConsole2.jpg   27.72K   31 downloads

 

Hope it helps

Enjoy Carriots!



#14 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 06 August 2014 - 01:36 AM

tq for your quick reply i try to check it first

Attached Files



#15 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 06 August 2014 - 03:33 AM

It work after i retype everything. I dont' know what wrongs with previous code. all look the same to me. but i getting this error 

 

Listener textTempme@eric3231559.eric3231559:startup failed RestrictedScript 6 Invalid variable name Must start with a letter but was At 6 25 line 6 column 25 sms to 0060165966561 1 error






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users