A Paisley teacher bombarded his ex-lover with abusive messages and followed her after their break-up.
Michael Muir, 35, sent Fiona Williamson the texts as well as a letter between June 2019 and July 2020.
The Castlehead High School teacher, of Kilnside Road, committed the crimes at various locations in Glasgow.