﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28189	Sending emails asynchronous	Stijn Goethals	nobody	"Sending the password reset e-mail asynchronous will improve the page load time very hard. This an nice feature for in an production environment.

I think that the best strategy is to add an variable to the setting file an then check if this variable is enabled. We could use this code:

{{{
        EMAIL_ASYNC_MAIL = getattr(settings, 'EMAIL_ASYNC_MAIL', False)


        if EMAIL_ASYNC_MAIL:
            thread = Thread(target=self.send_mail,
                                         args=(subject_template_name, email_template_name, context, from_email, user.email),
                                         kwargs={""html_email_template_name"":html_email_template_name})
            thread.start()
}}}

An other option is adding sending asynchronous mail to django.core.mail."	New feature	closed	contrib.auth		Normal	duplicate	Password reset; Threading; emails; mail; asynchronous;	stijn_goethals@…	Unreviewed	0	0	0	0	1	0
