Send SMS with tag as with mobile number

Hi

Is it possible to send a SMS via basic using a string tag containing the number?

I have done something similar with email address but can not get it working applying the same principle to SMS.

example of the script i have been trying below where SMS1 is the string tag containing the number

Onchange “tag_1”, “GOTO SENDSMSTOMOBILE”
SENDSMSTOMOBILE:
d$ = “SMS1@,gsm,0”
s$ = “tag_1” + STR$ tag_1@
SENDSMS d$,s$
Print “SMS Sent Successfully”
End

Hello,

Your d$ is incorrect. You have the tag reference within the qoutations so that it prints out reference rather than the actual number. You will need to move out of the qoutations, and add a + after the reference. See Below:

Onchange “tag_1”, “GOTO SENDSMSTOMOBILE”
SENDSMSTOMOBILE:
d$ = “SMS1@,gsm,0” //This print’s out SMS1@,gsm,0
s$ = “tag_1” + STR$ tag_1@
SENDSMS d$,s$
Print “SMS Sent Successfully”
End

You will need to replace that line with

d$ = sms1@ + “gsm,0” // Prints out [phone number],gsm,0

Hi Kevin

Thanks for your replay - have tried this but get no SMS.

I get the conformation in the console that the SMS sent successfully but no SMS received to the phone.

have checked the tag SMS1 and the number is in the correct format

What is the cellular provider that you are using?

Did you get the SIM card through Zip It?

Also, please attach a backup with support files of the affected device. This can be done using eBuddy.

Hi Kevin

managed to get it working needed an extra , before the gsm,0

d$ = sms1@ + “,gsm,0”

thanks for your help

Hello,

My apologies. I thought I had included it.

I am glad that you found it.

no problem at all - ,many thanks again