Adding support for sending emails over TLS