Hi, you can only get this from having sex. Yr partner could carry it for a very long time and have no symptoms and not know he's given it to you.
Remember, no man or woman wants to be the cause of someone elses infection. But we all need to be responsible. You must, I say must treat yourself and him otherwise both of you will get it again and again and give it to other partners. Plus if left untreated (for you) your tubes could become scared and later it may be difficult to fall pregnant or you could have an ectopic pregnancy.
If you want to stay with him, just accept things and move on. I really hope this is helpful.
Sydneygirl