Assuming you are talking about SMS, the easiest way to do that is to first subscribe to a messaging provider like Twilio and get yourself an API key. Then you can utilize their REST API for sending text messages.
2
solved Need an elixir function that sends a message to a phone number