[英]How to override verification email function in dj-rest-auth and all-auth?
I want to override the email verification method and put it in a Celery queue as it takes up quite some time (2-3 seconds) for the email to send.我想覆盖 email 验证方法并将其放入 Celery 队列中,因为发送 email 需要相当长的时间(2-3 秒)。 My question is, where can I find the function with sends the email?
我的问题是,我在哪里可以找到发送 email 的 function?
You can use Django Celery Email to send your emails via a celery queue: https://pypi.org/project/django-celery-email/ You can use Django Celery Email to send your emails via a celery queue: https://pypi.org/project/django-celery-email/
If you have a higher volume that needs to be send, you can also user Django-Mailer: https://pypi.org/project/django-mailer/如果你有更大的体积需要发送,你也可以使用 Django-Mailer: https://pypi.org/project/django-mailer/
These plugins will replace your default email backend and all emails will be processed via them.这些插件将替换您的默认 email 后端,所有电子邮件都将通过它们处理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.