Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using Celery it's needed to call msg.send_mail() #5

Open
hansek opened this issue Oct 2, 2019 · 1 comment
Open

When using Celery it's needed to call msg.send_mail() #5

hansek opened this issue Oct 2, 2019 · 1 comment

Comments

@hansek
Copy link

hansek commented Oct 2, 2019

When you're using MAILQUEUE_CELERY = True and after a message is saved to DB by msg.save() you need to call .send_mail() method to the message is put to Celery queue and sent.

I didn't found this info on https://django-mail-queue.readthedocs.io so would be nice if can be updated.

@hansek
Copy link
Author

hansek commented Oct 2, 2019

Alright, you can set MAILQUEUE_QUEUE_UP = False and then is email send immediately after is saved.

Afterall method .send_mail() could be mentioned somewhere in readthedocs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant