Easily send text messages from your Django project.
- Send text messages from any provider (only Nexmo.com is supported right now)
- Receive text messages status reports
- Handle incoming text messages
Check it out on Read the docs.
This application is tested agains Django 1.6 and 1.7, and Python 2.7 and 3.4.
Installation is easy with pip
.
pip install django-simple-sms
Add djsms
to you INSTALLED_APPS
:
INSTALLED_APPS = (
…
'djsms',
…
)
Set a text message backend in your settings::
DJSMS_BACKEND = 'djsms.backends.FileBasedBackend'
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from djsms import send_text
frm = '+33123456789'
to = '+33987654321'
text = 'Please remember to pick up the bread before coming'
message = send_text(text, frm, to)