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

Send Mail async #35

Open
abbasidaniyal opened this issue Apr 27, 2020 · 6 comments · Fixed by #43
Open

Send Mail async #35

abbasidaniyal opened this issue Apr 27, 2020 · 6 comments · Fixed by #43
Labels
enhancement New feature or request

Comments

@abbasidaniyal
Copy link
Owner

Make the send_mail in users.utils and send_query in content.views as asynchronous functions

@zrthxn
Copy link
Contributor

zrthxn commented Apr 27, 2020

How about using the Node Gmailer functions I wrote to run a small mailserver?
Maybe it could be expanded later to do more things

@zrthxn
Copy link
Contributor

zrthxn commented Apr 27, 2020

That library has support for templated emails, bulk emails and can be run as a multi-threaded operation for large loads.
(Not to mention that its async)

@abbasidaniyal
Copy link
Owner Author

We can send mass mails with django as well but that is not really required. Integrating hybrid services will require more time and can create discrepancies.

@abbasidaniyal abbasidaniyal added the enhancement New feature or request label Apr 27, 2020
@zrthxn
Copy link
Contributor

zrthxn commented Apr 27, 2020

Yea, I suggested that because that'll allow you to receive emails on the server as well.

But anyway, maybe if you can write a function to spawn a child process to send emails with Dj that'll make the thing async.
Or if you keep running the process in the background, it'll basically function as a mailserver on a small scale.

@abbasidaniyal
Copy link
Owner Author

Django 3 has asynchronous support

@abbasidaniyal
Copy link
Owner Author

Threads are not reliable. Will use celery with redis

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

Successfully merging a pull request may close this issue.

2 participants