Thanks for your query. Penile discharges are normally due to urethritis. This can be caused by infections due to bacteria or viruses. E-coli and such common bacteria causes urethritis. It is better to take a test of urine and make it confirm. Other infections like Chlamidia and gonorrhea also leads to urethritis, which is more dangerous. It is advised to have a long term anti-biotic course and abstain from unprotected sex. Your penile discharge can be examined in a swab test for more information. If you are found to have any sexually transmitted infection, your partner also will need treatment for the same. Good luck.