§ 42.07. HARASSMENT. (a) A person commits an offense if, with intent to harass, annoy, alarm, abuse, torment, or embarrass another, he:
(1) initiates communication by telephone, in writing, or by electronic communication and in the course of the communication makes a comment, request, suggestion, or proposal that is obscene;
(2) threatens, by telephone, in writing, or by electronic communication, in a manner reasonably likely to alarm the person receiving the threat, to inflict bodily injury on the person or to commit a felony against the person, a member of his family or household, or his property;
(3) conveys, in a manner reasonably likely to alarm the person receiving the report, a false report, which is known by the conveyor to be false, that another person has suffered death or serious bodily injury;
(4) causes the telephone of another to ring repeatedly or makes repeated telephone communications anonymously or in a manner reasonably likely to harass, annoy, alarm, abuse, torment, embarrass, or offend another;
(5) makes a telephone call and intentionally fails to hang up or disengage the connection;
(6) knowingly permits a telephone under the person's control to be used by another to commit an offense under this section; or
(7) sends repeated electronic communications in a manner reasonably likely to harass, annoy, alarm, abuse, torment, embarrass, or offend another.
The cops warning not to ever contact this other person carries no legal weight. As long as your communication does not constitute a crime, you cannot be prohibited from initiating contact. So, as long as your email is not obscene, threatening, conveys a false report, or has language that is reasonably likely to harass, annoy, alarm, abuse, torment, embarrass, or offend this other person, you will not have committed the crime of harassment.