Had a transmitter failure when just about to enter Class D with a 1200' cloud base. Set 7600 on the transponder and heard ATC warning another aircraft about us, which was comforting.
We were then asked to squawk something like 2130 if we could hear them, which we did.
Then asked to squawk something different if we had any other problems, which we didn't.
We were then given clearance to enter the Class D for approach and join right base for landing. Thanks to excellent ATC and a transponder, no problem at all.