Fixed email sessions that require TLS (like Gmail), added g.email_debug for output