Hello, is there any Django SMS library or method available to send SMS/text messages from Django application to a mobile number without the use of 3rd parties like twillio?
No. And it’s not just Django. Unless you have direct access to a wireless carrier’s infrastructure, there is no way for any server, framework, or language to directly send SMS messages.
Thanks for the quick answer!
has anyone tried integrating a third-party service like Twilio or Vonage with Django Rest Framework more recently? I’m working on a similar feature and wondering if there’s any new advice or preferred methods for sending SMS reliably with Django these days.
I’ve used Django with a sip trunking provider before by handling SMS through a simple webhook view that listens for POST requests. You just parse the request body, store or process the message, and return an HTTP 200. Also, if sending messages, I used the requests library to hit the provider’s endpoint directly with basic auth and a JSON payload. Keep an eye on rate limits and required headers.