A Newton man was sentenced to 30 years in prison after sending obscene material to someone he thought was a 14-year-old girl.