django-q2
django-q2 copied to clipboard
Wider Email Support?
I'm currently successfully using Django-Q2 for queueing email tasks using 'django.core.mail.send_mail' as detailed in the docs.
However, I've had a new requirement to send emails with additional fields that means I need to switch to using Django's EmailMultiAlternatives() and EmailMessage()
And, as far as I've been able to work out, Django-Q2, out-of-the-box, doesn't support these methods of emailing.
I'm aware of another library, django-q-email, that apparently adds this support but I am concerned that the library was for the previous Django-Q, and that it appears to be abandoned.
So I was wondering whether any consideration had been made to build in support within Q2?
First time seeing that library, thanks for the heads-up.
I am not opposed to bringing that over and support it natively. I will add it to my backlog.
In my own projects, I generally create one (or more) functions that handle the emails, that way I can also easily catch errors, which is much harder to do when we are pushing the send_email
function straight to the cluster.
I've done the above using a function I've written with with my multi-tenant application using Django_q2 and it works a treat. Allows you lets you leverage 3rd party systems like SendGrid too if you wanted to extend to offloading to a different service.