Django 邮件发送速度非常慢

问题描述

我已经实现了一个密码重置视图,它会发送一个指向电子邮件帐户的链接。但是发送需要更多时间。 如何使用多线程使发送电子邮件更快

class ResetPasswordView(SuccessMessageMixin,PasswordResetView):
    email_template_name = 'accounts/password_reset_email.html'
    form_class = CustomPasswordResetForm
    template_name = 'accounts/password_reset.html'
    success_message = mark_safe(
        """<li>We emailed you instructions for setting new password.</li> <br> <li>if an account exists with the 
        email you entered. You should receive them shortly.</li> <br> <li>If you don’t receive an email,please make 
        sure you’ve entered the address you registered with,and check your spam</li> """
    )
    success_url = reverse_lazy('accounts:reset_password')

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)