HELP! transmission case repair?

The hard part is keeping the trash out of the trans while you're fixing it. Stuff some steel wool down in there but just use one hard chunk. Something that you can get out later with tweezers. Cut off all the broken uneven part and drill down in there and cut new threads. I think you can use the original fitting if you can find the right size tap.