Speaking after sentencing, senior crown prosecutor Natasha Clark said Hendry had harassed his ex-partner between 29 May and 4 July 2024, after their relationship ended.

She said the former Premier League star had “ignored her wishes and breached boundaries she put in place” and his behaviour had been “intimidating and persistent, causing the victim immense distress”.

“Despite this, he initially refused to accept it was harassment,” she said.

The Crown Prosecution Service (CPS) said the 59-year-old, who won 51 caps for Scotland and also played for Dundee and Rangers in the Scottish Premiership, sent messages from several different email accounts and used “No Caller ID to call her after she blocked his number”.

When his calls went unanswered, he sent dozens of emails and messaged her on the social media site LinkedIn.