TEXARKANA, Texas — A Texas actress who tried to blame her husband after sending ricin-laced letters to officials including President Obama was sentenced Wednesday to 18 years in prison.

A federal judge gave Shannon Guess Richardson, 36, the maximum sentence under her plea deal on a federal charge of possessing and producing a biological toxin. Richardson was also ordered to pay restitution of about $367,000. She had pleaded guilty to the charge in December.

“I never intended for anybody to be hurt,” she told the court, adding later, “I’m not a bad person; I don’t have it in me to hurt anyone.”

Judge Michael H. Schneider noted that she had put many lives in danger and threatened public officials.

Richardson had minor roles in film and television including in the series “The Walking Dead” and the movie “The Blind Side.”