John Nimmo, who pleaded guilty to sending "menacing" tweets to a feminist campaigner, also targeted Labour MP Stella Creasy, a court heard.
Prosecutor Alison Morgan said Ms Creasy had suffered a "substantial impact" as a result of "these events."
More top news
The Labour leader has a certain swagger in this election campaign and his team are upbeat. But why?
Police are appealing for help in tracing a family of six who are feared to be travelling to Syria.
A "truly despicable" thief stole from a woman while she suffered a violent epileptic seizure.