The unnamed defendant admitted with hindsight that his actions 'were stupid'.
According to Mailonline,the defendant, who comes from Rhone in southern France, had already accepted responsibility for the barrage of phone calls and text messages over a 10-month period, and had accepted an earlier demand to cease contact with his ex.
It was only when she finally said thank you, during a meeting organised by a mediator, that the harassment stopped. He has not contacted her since.
'I tell myself, with hindsight, that it was stupid,' he told the court on Thursday.He was given a 10-month sentence, six months of which was suspended, and a 1,000-euro (£800) fine.
He will also have to undergo psychiatric treatment and is barred from all contact with the woman he harassed,