I am using django-anymail(sendgrid) to send emails in my web app. I would like to let the emails send in asynchronous manner without letting the users wait for some time.So, how can I configure django-celery-email with django-anymail.
Now, my email config. is:
ANYMAIL = {
"SENDGRID_API_KEY": os.environ.get('SENDGRID_API_KEY')
}
EMAIL_BACKEND = "anymail.backends.sendgrid.EmailBackend"
From the django-celery-email readme:
So in your settings.py:
Also, note that django-celery-email doesn't know about Anymail's extra sending options, like
metadata,tags,template_id,envelope_sender, etc. If you use any of those, you'll need to let django-celery-email know about them in your settings:(More info in this issue.)