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='xxx@gmail.com', to=['yy@gmail.com', 'zz@outlook.com'])
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()