Hello,
Welcome to ehealthforum
The symptoms reported as yellow discharge along with foul odour could be due to infection and the most common cause is fungal infectionIt is impossible to guess what the cause is without the benefit of examining you and performing a microscopic exam of the discharge.
In the absence of being able to do this you could try an over the counter preparation to treat a possible fungal cause. This would be clotrimazole and is used once daily at bedtime for at least 3 days. It is a topical cream actually which is inserted into the vagina.
If the symptoms still persist consider visiting a Gynaecologist for evaluation and treatment.
Take care!