Added authentication, TLS support and keyring support for SMTP