Sending Personalized SMS

+6587654321|Kevin
+6598765432|Foo
def send(strPhoneNumber, strMessage)
`./adb shell service call isms 7 i32 0 s16 "null" s16 "#{strPhoneNumber}" s16 "null" s16 "'#{strMessage}'"`
end

template='Hello %s'
rows=(`cat list.txt`).split("\n")
for z in 0..rows.length-1
row=rows[z]
phone_number=row.split('|')[0]
name=row.split('|')[1]
message=template % [name]
send(phone_number,message)
puts 'sent to %s' % [name]
sleep(1)
end
ruby send_sms.rb
brew install ruby

--

--

--

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My Journey into the Tech World

SRE — Tools of the Trade

Check Natural Gas Prices Using This API

HOW TO WRITE UNIT TEST CASE ON SLIM 3 TO TEST API | Devstringx Technologies

Database Management Systems

Phase 1 Project: Remember to add .catch error to your code!

CS373 Spring 2021: Nour Hajjar

How to Switch to a Linux OS in 5 Steps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin FOO

Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

More from Medium

Case Study — NodeJS based Automated Monitoring using Open Source

How to Add Conversation Intelligence to Your Android Video Chat App

5G Mobile network service classification

Integration of Huawei Analytics Kit and Ads Kit in Book Reading Android app (Kotlin) — Part 2