The yellow /white discharge that you have noticed sounds that you probably have an irritation or area of infection of the rectum or near this section of the lower bowel.
This may clear up on its own as the rectume is very vascular and has very good defense against infection and ability to heal....
I would watch for further symptoms such as more of this mucus or pelvic/rectal pain.
See your doctor if you have concerning symptoms.
For the constipation I would recommend that you take a daily stool softener (options include colace, surfak, docusate or mineral oil) Drink plenty of fluids (most of us are in the bad habit of not drinking enough fluids through the day) Try to get in 8 to 12 ounces every 2 hours while awake. Also try to get in some daily exercise such as walking and this may help.
Note that you are not just confusing the cream for hemorrhoids as being an abnormal discharge>> this would be another possibility....
Let me know if you have further questions/information or discussion and I will be happy to get back with you!
If my answers have been helpful and to your satisfaction then please remember to leave positive feedback! Thank You and Best Regards!
Anthony Bray MD
You are very welcome! Take Care!