COLUMBIA, South Carolina: Republican candidate Ted Cruz is out with a new ad mocking Democrat Hillary Clinton for using a private email server when she was secretary of state.

The spot spoofs a scene from the movie "Office Space" in which annoyed employees take a bat to a malfunctioning printer. In the Cruz version, a faux Clinton participates in the destruction of a server.

The Cruz ad has yet to be broadcast on television, but it has been viewed more than 1 million times online since his campaign released it recently.

Separately, former Virginia Gov. Jim Gilmore said he is dropping out of the race for the White House.

The Republican said in a statement he plans to support his party's nominee and will continue to speak out about what he called the dangers of electing Clinton or Sanders, the two candidates for the Democratic nomination.

Gilmore announced his candidacy in July, saying his record as a national security expert and a fiscal conservative would set him apart in a crowded Republican field.

But his campaign failed to win any support, and Gilmore qualified for only two so-called undercard debates.

The former Army intelligence officer briefly ran for the GOP presidential nomination in 2007 and lost a U.S. Senate bid in 2008 to another former Virginia governor, Mark Warner.