PASADENA, Calif. (AP) – The ex-boyfriend of a Pasadena high school teacher has been sentenced to six months in jail for sending nude photos of his ex to hundreds of students and school employees.

City News Service says David Galvan also was given 200 hours of community service on Monday and ordered to take anger management classes.

Authorities say he used a Muir High School work email to send naked photos of his former boyfriend to students, teachers and others on the victim’s contact list last July.

Police say Galvan was angry over the couple’s breakup.

He pleaded no contest last month to false impersonation and distributing obscene material.

(Copyright 2015 The Associated Press. All rights reserved.)