sendMail doesn't work for SSL/TLS smtp connections

Only STARTSSL and unencrypted SMTP seem to work.