Leeds Crown Court heard ex-cocaine addict Luke Fairless, 21, ordered the ecstasy from the Silk Road website and expected them to be delivered from Holland to his now former address in Hyde Park, Leeds.
But the court heard the package was delivered to the wrong address in Leeds and the person who received the package alerted police after opening it.
Police arrested Fairless on October 10 2014 and searched his address. Officers found class A drugs including eight ecstasy tablets, eight tabs of LSD and £710 cash. They also found two diazepam tablets and small amounts of mescaline hydrochloride and dimethyltryptamine.
Police seized Fairless’s laptop and phone and discovered one message he sent in March 2014, which read ‘I’ve spent a grand on drugs this week.’ The court heard Fairless lost his place at university.
Fairless, now of Rookhope, Rickleton, Washington Tyne and Wear, admitted the importation of class A drugs, four charges of offering to supply Class A, B, and C drugs and five charges of possessing Class A, B and C drugs.
The court heard Fairless had been the victim of a physical attack aged 16 and has been diagnosed as suffering from post traumatic stress disorder as a result.
Recorder Richard Gioserano said Fairless had dealt drugs to fund his own addiction.
Recorder Gioserano said it was a ”highly unusual” case before sentencing Fairless to a two-year prison sentence, suspended for two years.
Fairless was also ordered to do 200 hours unpaid work and comply with a four-month 7pm to 7am curfew.