djoser
djoser copied to clipboard
Sending emails with Celery
Hi It s rather question then issue.
Is it any way to use Celery to send activation and other emails sent by Djoser. Default implementation in Djoser uses request as Email Class init argument object to send emails and it's kind of non-serializable. Maybe you have an experience with making Celery send Djoser emails?
Hi,
If this issue is still not resolved, I can take this up.
Any news? +1
The easiest option is to use Django-Celery-Email, which would handle sending Djoser emails as well as any other emails.
here is my PR https://github.com/sunscrapers/django-templated-mail/pull/29 that fixes this bug
@bazhenstvo i do not believe its that simple because djoser is using an unpickleable email class, look at this issue: https://github.com/sunscrapers/django-templated-mail/issues/28