Four people were sentenced to jail terms of five to three years for spreading pornographic photos on their mobile phones.