Extra features for django-mail-factory.
- SMS factory to handle SMS like mails, Twilio integration implemented.
- Async email class to send email via celery.
- Defining SMS templates:
- Define your templates inside a folder
templates/sms/<template_name>/body.html
.
- Define your templates inside a folder
Registering a SMS message using Twilio backend (Twilio python client needed):
template_name
defines the name of the template to use.params
is the dict with the context variables the template will receive.
Sending SMS, just call
send()
from the smsfactory:
Define your email class using CeleryMail
.