A Texas man has pleaded guilty to seeking revenge on his ex-girlfriend by emailing out videos of them having sex.