Fixed a bug when not using TLS/SSL (smtp-ssl = False)