I
I
Ivan Koreshkov2017-03-30 11:11:32
System administration
Ivan Koreshkov, 2017-03-30 11:11:32

How to send sms with spaces?

Good day. There was a need for mass sending SMS from 1s, the choice fell on an android-based phone and shell adb. Everything works well but if there are no spaces in the text. If you write "text text text" then the phone starts to fail and does not send SMS, how can you still use spaces?

chcp 1251
cd C:\ADB
adb shell input keyevent 26
sleep 1
adb shell am start -a android.intent.action.SENDTO -d sms:************ --es sms_body "text" --ez exit_on_sent true
adb.exe shell sleep 1
adb shell input keyevent 22
adb.exe shell sleep 1
adb shell input keyevent 66
adb.exe shell sleep 1
adb shell input keyevent 26

Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
athacker, 2017-03-30
@athacker

Enclose text with spaces in quotation marks?

D
Dmitry Shitskov, 2017-03-30
@Zarom

Not an answer to your question.
There is such a service https://semysms.net/?locale=ru
True, no more than 1 SMS per minute with free use.
PS And so - yes, it just needs to be enclosed in quotation marks ... It's not clear why you have a problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question