Help!

Hey guys I recently found out I'm 2 months pregnant with my ex. I don't know exactly how to tell him I'm pregnant as we don't speak to each other because we broke up on really bad terms. Could somebody suggest a way I could tell him. By the way this is easier said than done so no mean comments