Add support of SMTP authentication

This patch adds support of SMTP authentication w/ or wo/ SSL or TLS.