Added implicit connections for smtp #17471.

Credits to dje as this is just an update for his patch.

Ticket: https://code.djangoproject.com/ticket/17471