The pair each pleaded guilty on 10 December at Dorchester Crown Court to five offences relating to the supply and possession with intent to supply of class A, B and C drugs.
Sharon Kennedy (43) was sentenced to two years in prison. Joshua Milkins (23) received a 40 month custodial sentence.
The court heard how on Sunday 17 February 2013, Sharon Kennedy was seen on CCTV handing over a package to Joshua Milkins while visiting him in prison. The package was later found to contain controlled drugs and mobile phone SIM cards.
Detective Constable Ian Frizzle, of the Major Organised Crime Unit said: “These convictions and sentences send a clear message that these crimes are not acceptable and will not be tolerated.
“Dorset Police, in partnership with HM Prison Service, is committed to stamping out this type of offending. We will continue to work closely together to bring offenders to justice.”
Governor of HMP Guys Marsh, Duncan Burles, said: “I would like to thank Dorset Police and Wessex Crown Prosecution Service who have worked hard in supporting my staff to secure these successful prosecutions.
“These sentences highlight the seriousness of this type of crime, and we will continue to work with local criminal justice partners to stamp out this type of offending.
“We remain committed to protecting the public by providing a regime which helps offenders to address their behaviour and lead law abiding lives in custody and on release back into our communities.
“These sentences serve as a timely reminder to those who aim to create disorder within our prisons of the likely consequences of their actions.”
The CPS prosecutor in the case was Anita Gibson-Lee.