andris9/simplesmtp — pull request #28 by marcolinux (2013-05-17 14:16:33+00:00)
Title: Change starttls to be native (ie upgrading an existing socket connection)

native tls module support connecting using an existing socket

`````
socket: Establish secure connection on a given socket rather than creating a new socket.
If this option is specified, host and port are ignored.
`````

host is passed anyway to the connect function to avoid this error
`Error: Hostname/IP doesn't match certificate's altnames`

I have tested with Hotmail provider quite extensively and it is working fine. However, I think some extra test are needed.