*The Ashanti fan who creeped out her family with a series of crude text messages to her mother was sentenced Thursday to two years in jail, despite the judge’s preference to send him to psychological treatment instead.

Devar Hurd, 31, said his intention wasn’t to annoy or alarm the R&B singer and her family when he sent the messages, some of which included photos of his genitals and a picture of the family’s Long Island home with a comment about stopping by to visit.

“My intent was not to harm,” he told the judge. “I always wish the best for (Ashanti).”

Hurd was convicted in December of stalking and aggravated harassment. Ashanti’s mother and manager, Tina Douglas, said she was glad to see the case closed with his sentencing.

“We’re really so glad to have this behind us, and we feel justice has been served,” she said through a spokeswoman.

After Hurd was convicted, doctors diagnosed him as having a delusional disorder, Manhattan state Supreme Court Justice Thomas Farber said. But months of efforts to arrange probation with mental-health treatment were unsuccessful, in part because Hurd has nowhere to live in New York, Farber said.

He gave Hurd the maximum possible sentence for the misdemeanor offenses, noting the fear Douglas said she felt because of the messages. Farber recommended psychiatric treatment for Hurd in jail.

“It’s obvious to me that you need to get help,” the judge said.

Prosecutors, who pushed for the maximum sentence, said Hurd should be held responsible for his explicit text-message blitz despite his psychological problems.

“Even if he believes that Ashanti was in love with him, his conduct was not that of a man wooing a woman. He was not sending her flowers,” but rather barraging her mother with messages any parent would find objectionable, Assistant District Attorney Carolina Holderness said.

Hurd has been jailed since his July arrest, time that will count toward his sentence.