Add support of SMTP authentication

This patch adds support of SMTP authentication w/ or wo/ SSL or TLS.
Please emit an error here rather than falling through if `smtpport` is not one of the allowed values.