Django SMTP Integration Guide
Guide to integrate Mailazy with your Django application
You need to complete these given prerequisites, you can skip the step if you have already completed.
There is more detailed information about sending email over SMTP with Django on the Django project website.
First start by adding the following to settings.py:
EMAILHOST = 'smtp.mailazy.com' EMAILHOSTUSER = 'accesskey' EMAILHOSTPASSWORD = ‘accesssecret’ EMAILPORT = 587 EMAILUSETLS = True
Then to send email you can do the following inside yourapp.views.py