A PRISONER has been sentenced after writing a letter to his on-off lover about a £172m lottery ticket.

John Ormiston breached his bail conditions after contacting the woman at her home in Glasgow's Blackhill on October 31 this year.

The 50-year-old sent the handwritten note from his cell at the city's Barlinnie prison.

READ MORE: Topless teenager shouted abuse at Glasgow police on Old Firm day

Glasgow Sheriff Court heard Ormiston was initially arrested for a separate matter on October 9.

He was released on bail with conditions not to approach, contact or communicate with the woman.

Ormiston was also ordered not to enter the street where she lives.

He was later sentenced to 40 days for a separate breach of bail conditions.

Prosecutor Kyle Dalziel told the court police attended her property for another matter.

He said: "She pointed to two handwritten letters on her sofa.

"She stated that John had been writing to her from prison.

"She said that she could not get rid of Ormiston."

One of the letters were read out in court by Mr Dalziel.

It said: "I have still got these lottery tickets on for Wednesday and Saturday and a Euromillions one for Friday.

"That one is for at least £172 million.

"That would have come in handy if I had them when I got lifted."

Darren Fleming, defending, told the court the second letter was regarding his bank account which she has access to.

The lawyer added: "There was nothing malicious in terms of the letters written but despite that this is a breach of a court order.

"There were other means to get that information such as from his father who he lives with.

"The 'can't get rid of him' comment is a surprise to him as he understands the victim wants their relationship to continue."

Ormiston pled guilty today to breaching his bail conditions.

Sheriff Jonathan Guy sentenced him to 80 days.