Prosecutors issued a "notice of violation" after determining the foundation had no proper registration.
The notice directs the Trump foundation to "immediately cease soliciting contributions or engaging in other fundraising activities in New York".
The foundation has relied on donations from others since 2008, records show.
James Sheehan, head of the attorney general's charities bureau, sent the letter to the foundation on Friday, according to a copy provided by press office of state Attorney General Eric Schneiderman.