Tex. Penal Code § 38.111
(a) A person commits an offense if the person, while confined in a correctional facility after being charged with or convicted of an offense under Section 42.072 or listed in Article 62.001(5), Code of Criminal Procedure, contacts by letter, telephone, or any other means, either directly or through a third party, a victim of the offense or a member of the victim's family, if the director of the correctional facility has not, before the person makes contact with the victim:
(1) received written and dated consent to the contact from:
(B) if the victim was younger than 17 years of age at the time of the commission of the offense for which the person is confined:
(c) It is an affirmative defense to prosecution under this section that the contact was:
(e) In this section, "correctional facility" means:
Added by Acts 2001, 77th Leg., ch. 1337, Sec. 1, eff. Sept. 1, 2001.
Acts 2005, 79th Leg., Ch. 1008 (H.B. 867), Sec. 2.11, eff. September 1, 2005.
Acts 2007, 80th Leg., R.S., Ch. 908 (H.B. 2884), Sec. 41, eff. September 1, 2007.
Acts 2019, 86th Leg., R.S., Ch. 1066 (H.B. 1343), Sec. 5, eff. September 1, 2019.
Acts 2025, 89th Leg., R.S., Ch. 793 (S.B. 1021), Sec. 4, eff. September 1, 2025.