A small package that provides a function sendsms for sending text messages using Twilio.
Author simonschoelly
1 Star
Updated Last
4 Years Ago
Started In
October 2019


Build Status Lifecycle: experimental GitHub


TwilioSMS.jl is micro-package that provides a single function for sending text messages using the Twilio api. If there is interest, then further functionaliy can be added in the future. PRs are welcome.


Adding the package to Julia is easy, in the REPL simply type:

]add TwilioSMS

After that, an account has to be created on and a sid, an authentication token and a sender number has to be set up there. While this service costs, there is also a free trial that allows one to send sms. For the free trial it is also necessary that the receivers number is registered on their website.

The easiest way to store the the sid and auth token is in the environment variables TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN. It is also possible to pass those values explicetly in the code but for security reasons it is better not to have such values in code.


Assuming that the correct values have been stored in the environment variables TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN one can then simply write:

using TwilioSMS

from = "+1-202-555-0107"
to   = "+1-512-555-0180"

sendsms("Did you know that you can send emojis in SMS? ๐Ÿฅฆ๐Ÿฆ’", from=from, to=to)

For passing them explicitely one has to write:

using TwilioSMS

sid        = "d5d7b014b05d54fa52647820a035089e"
auth_token = "bed7fe1af0d18dfd-100972663d58f196"

from = "+1-202-555-0107"
to   = "+1-512-555-0180"

sendsms("๐Ÿ›Ž๏ธ Compilation is done, get back to work!", from=from, to=to, sid=sid, auth_token=auth_token)

Similar Julia packages

There seem to be multiple packages for Telegram:

Used By Packages

No packages found.