Weil is an email web service platform
-
Start weil web service
-
Create a mailbox which containing your SMTP or AWS SES credentials
-
Generate a token and use the token to call weil api
POST /api/send, { 'to': ['Tome <tom@example.com>'], 'subject': "Please verify your email address", 'content': "click the link below to verify your address", 'html_content': "<html> .... </html>", 'sender': "sender@your-host.com", 'token': 's23d23'wer-wek2345-sdfg234', }
-
Finish !
$ pip install django-weil
$ vi settings.py
EMAIL_BACKEND = "dj_weil.backend.EmailBackend""
WEIL_END_POINT = "http://internal.com/api/send"
WEIL_ACCESS_TOKEN = "your-secret-token"
Done !