Kelly Miller, 32, taught at East Aurora High School. She resigned last week.
Miller turned herself into police on Tuesday and was released after posting bond. Police say Miller texted two inappropriate photos of herself to a 15-year-old student in late May or June.
Investigators learned of the pictures when they received a tip last Monday.
Miller is charged with sexual exploitation of a child.