A campaign finance watchdog is accusing Donald Trump of breaking federal law by soliciting donations from non- U.S. citizens after politicians from several countries complained they had received emails from his campaign.

The Campaign Legal Center, a nonprofit whose aim is to promote the enforcement of federal election finance laws, filed a complaint Wednesday with the Federal Election Commission accusing the presumptive Republican nominee's campaign of "violating black-letter federal law."

Over the past two weeks, members of Parliament from the United Kingdom, Australia, Canada , Iceland , Denmark and Finland have all complained they received fundraising messages from the presumptive Republican nominee's campaign accounts.

Lawmakers seemed baffled, even angry, that they were being targeted by Trump. Many shared screenshots of their inboxes flooded with messages signed by Trump himself, his sons, Eric and Donald Jr., and campaign manager Paul Manafort.

@joshtpm Four since Friday, but I'm sure there have been more that my office has just deleted as spam. pic.twitter.com/hv95jH6AJX — Tim Watts MP (@TimWattsMP) June 29, 2016

The emails preceded Trump's trip last week to Scotland, during which he oversaw the reopening of his golf course in Turnberry, that took place as the U.K. voted to leave the European Union in a referendum.

But his statement upon arriving, cheering Britain's vote to "take their country back" just hours after the Scotsland voted overwhelmingly to remain in the E.U., and emails sent celebrating the so-called "Brexit," were seen as thuddingly tone deaf.

"Quite why you think it appropriate to write emails to U.K. parliamentarians with a begging bowl is for your father's repugnant campaign is completely beyond me," MP Natalie McGarry, who represents Glasgow East, wrote in response to a missive from Donald Trump, Jr.

"Given his rhetoric on migrants, refugees and immigration, it seems quite extraordinary that he would be asking foreign nationals for money," she continued, "especially people who view his dangerous divisiveness with horror."

May be Donald Trump bought lists - bizarre for grassroots campaign - but how does he opt out of foreign donations? pic.twitter.com/jVwfdFnI6U — Natalie McGarry MP (@NatalieMcgarry) June 27, 2016

It's unclear why Trump's emails have landed in the inboxes of members of foreign parliaments, but doing so intentionally would be against laws prohibiting campaigns from soliciting or accepting donations from foreign nationals.

The campaign has not responded to requests for comment.

"Donald Trump should have known better," said Paul S. Ryan, deputy executive director of the Campaign Legal Center. "It is a no-brainer that it violates the law to send fundraising emails to members of a foreign government on their official foreign government email accounts, and yet, that's exactly what Trump has done repeatedly."