Hi,
I don't know how long you've had this problem for, but it sounds as if you are worried that it could be breast cancer. I would strongly doubt that you have this disease, especially because both your nipples are involved.
A smelling discharge can indicate bacterial infection..Did you see your Doctor about this? I suggest that you get it checked out to make sure.
Best wishes…