President Trump’s tweeted warning that Alabama could be hit by Hurricane Dorian last September — and the six days he and the White House spent defending that message — sparked anguish and outrage among federal officials, newly disclosed emails reveal.

“All of our [National Weather Service] employees … are absolutely reeling over this,” assistant secretary of commerce Tim Gallaudet wrote in one of the 1,000 emails obtained by BuzzFeed News.

“This Administration is eroding the public trust … for an apparent political recovery from an ill timed and imprecise comment from the President,” complained Craig McLean, an NWS assistant administrator.

Trump tweeted Sept. 1 that five states, including Alabama, would “most likely be hit much harder than anticipated” by the Category 5 storm that devastated the Bahamas.

Three days later, Trump shared with reporters a map showing a storm track that had been extended to include Alabama with a line drawn in black Sharpie.

“HELP!!!” Dennis Feltgen, an agency spokesman, emailed another top official on Sept. 4, in response to press requests for clarification on the altered map, BuzzFeed wrote.

The NWS office in Birmingham, Ala. issued a tweet contradicting the president — launching days of ridicule in the press, and a statement from the National Oceanic and Atmospheric Administration disavowing the field office’s post.