email: keep smtp client connection alive
Instead of connecting and disconnecting each and every time we need to
send an email, keep the SMTP connection alive attached to a context
variable.
Before sending an email, check if the connection is still valid and
reconnect if it is not.
Signed-off-by: Robin Jarry <robin@jarry.cc>
email: update StartTLS usage per go-smtp changes
Bugfix, mail config placed in wrong setting.
Add support for mail setups that don't support TLS or Auth
email: remove leftover debug code