As Hillary Clinton prepares to accept her party’s nomination for president, the anti-secrecy group WikiLeaks has released nearly 20,000 hacked emails that offer an embarrassing look inside the workings of the Democratic Party as it prepares for its convention in Philadelphia.

Some of the emails from the Democratic National Committee include discussions about how to undermine Clinton’s chief rival for the presidential nomination, Sen. Bernie Sanders (D-Vt.); details of perks provided to party donors attending the convention; and email exchanges among party officials, journalists and others.

The emails were released Friday on Twitter by WikiLeaks, which linked readers to a Web page inviting them to search the DNC email database. A search box sits beneath a one-paragraph introduction:

“Today, Friday 22 July 2016 at 10:30am EDT, WikiLeaks releases 19,252 emails and 8,034 attachments from the top of the US Democratic National Committee — part one of our new Hillary Leaks series,” the introduction says. “The leaks come from the accounts of seven key figures in the DNC,” including Communications Director Luis Miranda (10770 emails), National Finance Director Jordon Kaplan (3797 emails), Finance Chief of Staff Scott Comer. . . .” and others. The newly released emails cover the period from January 2015 through May 25, 2016.

Friday’s document dump follows a report last month by The Washington Post that Russian government hackers had penetrated the computer network of the Democratic National Committee, gaining access to an entire database of opposition research, among other material.

DNC and Clinton campaign officials did not respond to requests for comment Friday as reporters and unnerved campaign staff tried to assess the damage caused by the release, which comes just as the party holds a nominating convention in Philadelphia designed to project unity after a bitter primary season. Some of the emails could open some old wounds and impede that process.

One email written May 5 to Miranda from another party official suggests that the party could help Clinton by raising questions about Sanders’s faith. The email seems to indicate a clear preference among DNC officials for a Clinton primary win.

“It might may [sic] no difference, but for KY and WVA can we get someone to ask his belief,” the email from “marshall@dnc.org” says. “Does he believe in a God. He had skated on saying he has a Jewish heritage. I think I read he is an atheist. This could make several points difference with my peeps. My Southern Baptist peeps would draw a big difference between a Jew and an atheist.”

Another, from a lawyer for the Clinton campaign, suggests a response the DNC should use to refute claims by Sanders that the Clinton campaign was improperly using a joint fundraising committee with the party to raise money that provided benefits to Clinton during the primary season. “The DNC should push back DIRECTLY at Sanders and say that what he is saying is false and harmful the the [sic] Democratic party,” attorney Marc Elias wrote in a note to Miranda on May 3. Elias did not respond to a request for comment late Friday.

It was well known that there had been friction between the Sanders campaign and an ostensibly impartial party apparatus.

But the emails detail exactly how much bitterness enveloped that relationship as Sanders emerged as a real threat to Clinton.

One potential complication is that Sanders’s supporters are crucial to Democratic hopes of retaining the White House in the fall. They bring to the contest both passion and a potentially vast donor base.

The cache of emails also includes communications with journalists and discussions of news organizations, and the emails provide a new perspective on the deference shown to major donors — and the efforts to carefully calibrate rewards based on a contributor’s financial generosity.

In one exchange from May, Mid-Atlantic Finance Director Alexandra Shapiro and National Finance Director Jordan Kaplan argued over which big giver deserved to sit next to President Obama at a DNC event.

Kaplan directed Shapiro to put New York philanthropist Philip Munger in the prime spot, switching out Maryland ophthalmologist Sreedhar Potarazu. He noted that Munger was one of the largest donors to Organizing for America, a nonprofit that advocates for Obama’s policies. “It would be nice to take care of him from the DNC side,” Kaplan wrote.

Shapiro pushed back, noting that Munger had given only $100,600 to the party, while the Potarazu family had contributed $332,250.

In one email attachment from Erik Stowe, the finance director for Northern California, to Tammy Paster, a fundraising consultant, he lists the benefits given to different tiers of donors to the Democratic National Convention, which starts next week in Philadelphia. The tiers range from a direct donation of $66,800 to one of $467,600 to the DNC. The documents also show party officials discussing how to reward people who bundle between $250,000 to $1.25 million.

A document titled “2016 Convention Packages” shows that top-tier donors will be treated well in Philadelphia. They will receive priority booking at a premier hotel, free tickets to major convention events and six tickets to an “exclusive VIP party,” according to the document.

Matea Gold, Ellen Nakashima, Anu Narayanswamy and Breanne Deppisch contributed to this report.