A teacher at MacDonald High School in San Jose is suspected of having a sexual relationship with a student at another school.