Actually, an ex parte communication is simply a communication with the court that is not also shared with the other parties. Some ex parte communications with the court are allowable, but in most instances, all parties must be served so that they're aware of the pleading or whatever it is.
So any communication, whether a letter or a motion or whatever, is not ex parte and is acceptable if it otherwise conforms to the rules if all parties are served.