Answer the question
In order to leave comments, you need to log in
django send sms
Good afternoon!
How to implement sending sms on a specific date to a specific phone, that is, there is a calendar with events by date, it is necessary if the start date of the event matches the current one, sms is sent to a specific user phone to which the event is attached!.
You need a working example that is used in your project!
Thank you!
Answer the question
In order to leave comments, you need to log in
I did this:
- connected 'smsaero',
- in the form of adding a new event, added send_sms, in my case:
title = title.encode('utf-8')
start = int(mktime(start.timetuple()))
send_sms((resp.profile.phone), (title), '2', (start))
Each application has its own solutions, and most likely will not suit yours, here is the application that sends SMS - django-twilio.readthedocs.org/en/latest/, think of the rest yourself.
https://www.twilio.com/blog/2014/04/building-a-sim...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question