Judge Brian Callaghan granted bail, which was not opposed by police, on conditions that he reside at a Wainoni address and to not enter any prison grounds.
He will be back in court on August 12.
A Christchurch single mum also appeared in court today for trying to smuggle synthetic cannabis into a Canterbury prison.
Last month, Corrections staff at Rolleston Prison intercepted several phone communications from an inmate to Natasha Betty Lynn, 26.
The communications indicated that Lynn was going to bring contraband into the prison "at the behest of the inmate".
Lynn, of Bromley, drove into the prison grounds about 1pm on June 13.
She was stopped and spoken to by Corrections officers who told her they believed she was in possession of contraband, Christchurch District Court was told.
Lynn produced 28g of K2 synthetic cannabis and cigarette papers that had been wrapped in cling film.
"[It] appeared to be packaged in such a manner that it could be hidden internally," the police summary of facts says.
Lynn pleaded guilty to a charge of unauthorised delivery into prison today.
Defence counsel Angela Grant said Lynn apologises for her offending.
The inmate had been phoning her "daily", Ms Grant said, and had also passed out her phone number to "others in the community who were ringing her".
Judge Brian Callaghan took into account that she had been "acting under some pressure".
However, he sentenced her to 120 hours of community work, saying that it was offending that needed to be met by a "reasonably stern response".
The issue of inmates smuggling cellphones and drugs into prison has been under the spotlight in recent weeks, after revelations of a series of violent incidents occurring at another New Zealand facility.
Shocking footage of fight clubs and inmates with drugs and homemade alcohol at Mt Eden prison, filmed on cellphones by inmates, surfaced after videos were uploaded online.
It has sparked a multi-agency investigation at the facility.
Three gang members were also arrested in Head Hunters raids yesterday allegedly used smuggled cellphones to help organise the production and distribution of methamphetamine from inside Mt Eden prison.
Sensible Sentencing Trust founder Garth McVicar said it was alarming that prisoners had such easy access to mobile phones.
"From the victim's perspective, it's absolutely distressing to think that would happen. From a public perspective it's even more alarming that our prison system has become so offender-friendly that this type of stuff is able to go on."
Earlier this year, Serco announced controversial plans to fit out cells with phones and computers in its Wiri facility in South Auckland.
- Additional reporting from Lauren Priestley