Added implicit connections for smtp #17471.

Credits to dje as this is just an update for his patch.
review bug #17471 - Add ability to use smtplib.SMTP_SSL connection when sending email