A South African mother who tried to sell her 19-month-old baby boy on the Internet for $340 was given a five-year suspended sentence, a justice official said.