The code I wrote is the one on
https://github.com/stefanfoulis/django-sendsms which is:
settings.py
SENDSMS_BACKEND = 'sendsms.backends.console.SmsBackend'
view.py
from sendsms import api
def home(request):
api.send_sms(body='I can haz txt', from_phone='0768903661',
to=['0768903661'])
return render_to_response('home.html')
After I ran the server, this what I get on the console:
from: 0768903661
to: 0768903661
flash: False
I can haz txt
-------------------------------------------------------------------------------
Maybe its like Dennis said, that this is meant for testing purpose, do I
have to subscribe to twilio in order to be able to actually send the sms?
On Friday, September 14, 2012 8:40:10 PM UTC+2, Lunga Baliwe wrote:
>
> Good day,
>
> I am writting a website that sends sms to a cell phone. I am
> using django-sendsms-0.2.2. I followed the README.rst doc and the output
> does appear on the console. How do I make it to actually send the sms?
>
> Your help will appreciated.
>
> Kind regards,
> Lunga
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Gobzn88UMnYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.