To a great extent, it depends on whether the order was one granted because she requested one, or whether the order came down from a judge at the judge's own discretion.
If she requested the order in civil court, saying that she was afraid and didn't want contact, then you have a great case to take your records and ask the court to drop the order.
If the order was issued as part of a criminal case because it was the judge's idea to keep you two apart, then the judge won't care that she wanted to try to make contact with you - your message would constitute "contact" and you could be facing arrest for violation of the order.

