This will allow you to use elasticemail.com as your EmailBackend. The best part is elasticemail.com let you send 1.5Lakh emails for free :D https://elasticemail.com/pricing/
-
Install the package via pip
pip3 install -e git+https://github.com/rrmerugu/django_elasticemail
-
Add
django_elasticemail
toINSTALLED_APPS
-
In
settings.py
addEMAIL_BACKEND = "django_elasticemail.mail.ElasticEmailBackend"
from django.core.mail import EmailMultiAlternatives
email_message = EmailMultiAlternatives(subject=None, body=None,
from_email='[email protected]', to=['[email protected]', '[email protected]'])
email_message.template = 'template-name' # template with this name should be created in your elasticemail.com account
email_message.merge_vars = {
'text': 'Hello World',
}
email_message.send()