Fixes DisableTLS bug when sending emails