A former writer for People magazine wrote in a first-person account posted Wednesday night that Donald J. Trump cornered her alone in 2005, “pushing me against the wall and forcing his tongue down my throat,” while she was at his Florida residence to interview him and his wife.

People posted the story by the writer, Natasha Stoynoff, several hours after the publication of a New York Times article in which two women described sexually aggressive behavior years ago by Mr. Trump, now the Republican nominee for president. Mr. Trump and his campaign have vigorously denied the women’s accounts.

Ms. Stoynoff wrote that the December 2005 interview focused on the first wedding anniversary of Mr. Trump and his wife, Melania, who was pregnant at the time. That was the same year that Mr. Trump and the entertainment personality Billy Bush were recorded making vulgar and demeaning comments about women.

Ms. Stoynoff said she knew the Trumps before the meeting — she had attended their wedding, reported on Mr. Trump at Trump Tower in New York City and covered his NBC reality series, “The Apprentice.”