Texts, emails lead to charge against man