The discharge from your Right ear is because of infection of middle ear called ''otiitis media"
Middle ear is the part beyond your ear drum. Infection of this part will affect your hearing and also can lead to some serious complications.
The middle ear is connected to post nasal space ( nasopharynx
) through a tube. Through this tube infection from your nose and sinuses
can enter middle ear and infects it..
The reason for foul smell is because of pus present in your sinuses as a result of persisting infection.
The infections ( bacterial or fungal) of SINUSES or MIDDLE EAR needs a prolonged course of proper antibiotics &/or surgical form of treatment to clear it.
I can suggest some medications but it is best to consult a otorhinolaryngologist (ENT Surgeon) as you cannot neglect your condition.
is annoying that can be associated with ear infection
which resolves with the treatment but I cannot assure you that it always will..