Support for SSL

Added support for SSL login to SMTP servers.

I've also added an extra new line after the "to:" as it didn't work without it on my SMTP server.
Hope this doesn't break for other servers.