WASHINGTON — President Trump’s re-election campaign and the Republican National Committee raised a combined $125 million in the last three months, Republican Party officials said on Tuesday, setting a presidential fund-raising record.

The huge infusion of money confirms that the president is building an enormous war chest heading into the 2020 election while the Democrats are set to spend the next several months arguing over their nominee. Mr. Trump’s fund-raising effort included several recent emails, tweets and text messages urging supporters to donate to help protect his presidency after House Democrats announced an impeachment inquiry into the president’s dealings with Ukraine and other matters.

Officials said that the various Trump-related committees have raised a combined $308 million this year, and have $156 million in cash on hand.

The numbers were reported by The Associated Press, and a campaign official confirmed their accuracy.