solving email problem