A Santa Clara man pleaded no contest Monday to seven felonies and three misdemeanors in making threats against state Sen. Leland Yee, D-San Francisco, for his pursuit of gun control legislation.

Everett Basham pleaded to felony counts of making terrorist threats, malicious possession of explosives, forging a military ID and illegal possession of assault weapons, said Alaleh Kianerci, a Santa Clara County deputy district attorney. She said he also pleaded to misdemeanors including carrying a loaded concealed weapon and possession of a destructive device, which was a modified explosive.

The crimes carry a maximum sentence of 10 years, Kianerci said, adding that Basham is not eligible for probation.

The incident took place earlier this year, when Basham sent Yee an email warning that he would assassinate him if he continued pursuing gun control bills.

“The threat was unlike any of the other ones I’ve received in the past,” Yee said in February. “In the past I’ve received racial slurs, rants about my ethnicity and culture, about China. But instead this was a rather detailed, deliberate and exact set of strategies as to how he would carry out that threat.”

Yee issued a statement today thanking prosecutors for their action on the case and vowing to continue “pushing for common sense gun safety legislation.”

“I appreciate that justice was served in this matter and I hope that this man receives all the help he needs,” the statement said. “The professionalism of the California Highway Patrol, the FBI, the Santa Clara District Attorney’s office and their partners, ensured that a dangerous threat was removed from our community before anyone was hurt.”