Welcome to HCM.
Foul smelling discharge from genitalia and perineal region definitely gives rise to suspicion of fungal infection
, but there should be other associated symptoms like itching and scaly skin lesions. I suggest you maintain good personal hygiene, keep those areas clean and dry and avoid tight clothes to prevent sweating in those areas.
If symptoms still persist, get a stool exam and perianal swab examination to rule out infection.