﻿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
26210	Make the SMTP more efficient if an error passes silently when creating a connection	Antonis Christofides	mlevental	"My server had a 500 error, and Django was trying to email the error information to the ADMINS. Upon reaching https://github.com/django/django/blob/0ed7d15/django/core/mail/backends/smtp.py#L64, there was an exception because of a gevent bug.

In that case, `fail_silently` is True. The result is that the `open()` method returns as if everything had gone fine. This means that, subsequently, the `send_messages()` method will be called, and so on.

Impact: Maybe this is just a bit ugly, however if you continue to work as if there had been no error when an error has actually occurred, you are asking for trouble. http://stackoverflow.com/questions/35315397/ shows why this issue made debugging another problem a day or two longer.

It should also be possible to log the error that occurs during the sending of the email, although this is probably a different issue."	Cleanup/optimization	closed	Core (Mail)	1.9	Normal	fixed		m.levental@… Aleksej Manaev	Ready for checkin	1	0	0	0	0	0
