- Use sslcontext for the smtp connection (#677)
- Use sslcontext for the smtp connection (#677)

- remove the unnecessary call to ehlo()
- check if smtp_username is set before login()
- call to quit() instead of close() to terminate the session
guardian/alerta,guardian/alerta,guardian/alerta,guardian/alerta