Changed the BaseEmailBackend to allow usage as context manager to open and close connections.
Thanks joseph at vertstudios.com for the suggestion.
Thanks to Andi Albrecht for his work on this patch, and to everyone else that contributed during design and development. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11709 bcc190cf-cafb-0310-a4f2-bffc1f526a37