How do you replace fuel sending unit gasket?

Car's up on jacks, drained 7 gal of fuel, loosened the ring and it dripped for an hour. Where does the gasket go? Does the sending unit have to come out? Thanks