Genji Tsūshin Agedama (ゲンジ通信あげだま) is a Japanese anime series produced by NAS and TV Tokyo and animated by Studio Gallop. The series aired on TV Tokyo from 1991 to 1992. The show was one of multimedia content strategies—prevalent in Japan around the early 1990s— and several renditions of the content were released, that is, in the forms of manga, anime, PC Engine game.
Source: Wikipedia
In Ep8 the villainess Rei Kuki is spanked in front of the class.
IMDB: https://www.imdb.com/title/tt0101105/
Clip: https://www.youtube.com/watch?v=I4NWOp9XH5E