A Gilbert man was charged after reportedly sending pornographic Instagram messages to students during class.