A science teacher at a high school in Greenville has resigned and been arrested after police say she sent improper text messages and photos of herself to two students.