email notifications fixed for tls