Remy Ma has been sentenced to eight years in prison in the shooting a woman outside a Manhattan nightclub.

The state Supreme Court sentence was handed Tuesday to the 26-year-old rapper, whose real name is Remy Smith, for assault, weapon possession and attempted coercion.

Remy Ma, who could have faced up to 25 years in prison, was teary-eyed as she heard the sentence.

She says last summer's shooting was an accident; an appeal is planned.

Correction officials say they called off her weekend wedding at the Rikers Island jail after the groom -- fellow rapper Papoose -- showed up with a handcuff key.

Remy Ma's lawyer, Ivan Fisher, denies the key could be used to unlock handcuffs. Papoose isn't charged.

Fisher says the two still plan to wed.