Take stool softener's without stimulants. You can safely take these as recommended. It may take a week or two before they actually start working effectively so you have to be patient. Laxatives with stimulants can be harmful long term. As a recovering bulimic, many many years ago when I was younger and did not know better I found out what they can do to a person. In short, they can impact your heart much the same as anorexia which was less my problem. They can also when stopped constipate you even more. I was hospitalized afterwards for a week as technically the "shit" backed up in my system and the toxins affected bile ducts, pancreas, etc., not pleasant except the pain medication was great which made it worse and, I was a F'ing mess until it got worked out.
Tell your Dr as there are scripted meds, even edemas that he can get for you, but you really need to look at your diet. You can search for foods, like prunes, that are natural laxatives and I would think it would be easier to suffer through eating something you may dislike over the ritual you find yourself in. Good luck.