For the washing machine, use Amazon.com: OxiClean Washing Machine Cleaner with Odor Blasters, 4 Count : Health & Household
for the stinky shirt, soak it in a bucket of hot water, a bit of your detergent, a bit of washing soda, and add some of this to the bucket too: Amazon.com: OdorKlenz Laundry Additive Odor Neutralizer, Powder 80 Loads | Laundry Odor Eliminator for Strong Odor | Smoke Odor, Chemical Odors, Pet Odors & New Clothes Smell | Unscented and Non-Toxic : Health & Household
Soak that all together overnight. Take it out of the bucket in the morning and put it in the machine to rewash it as usual.