Correctly set the mail TLS option to True.
Add Gzip middleware.