There must be already existing reasons as to why your laundry smells bad. From figuring out that a machine can be dirty and then cleaning and making it ready to be used to knowing the right temperature of the water that is ideal can help.
1. Your washing machine must be clean2. The washer door should be open3. You can sometimes wash with hot water4. Use the right detergent and quantity5. Do your laundry as early as possible