i am 26 yrs old and when my period come out ( before and after) i had a white and sometimes yellowish descharge and when i had a sex with my partner my viginal descharge had strong odor...what can i do?is this infection due to sex?

thank you..