use_tls initialization bug in django.core.mail.SMTPConnection
|Reported by:||aromano||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have created this new ticket to make you aware of a bug on django.core.mail.SMTPConnection at constructor level, where use_tls is not initialized properly. Indeed, in case you decide to initialize a SMTPConnection instance with use_tls=False, and settings.EMAIL_USE_TLS defined as True, then the actual value that is set is not False (as explicitly defined at construction level, and as we expect), but True instead. I have created a patch for this, which is attached to this ticket. I am aware of this bug's existance since Django 1.0, and it is still present under SVN release.