fix #609 - sendMail doesn't work for SSL/TLS smtp connections

- need to establish an SSL connection right away
Merge pull request #609 from MartinNowak/fix609

sendMail doesn't work for SSL/TLS smtp connections