Jack Johannesen, 23, from Sandy, Bedfordshire, has been sentenced to two years and 10 months in prison for drug dealing and breaching bail conditions.
He was caught after mistakenly sending a group text message advertising his new drug line to the phone of a police officer who had previously been involved in his arrest.