If that were private sector (a company making the donation), it would be illegal (for the company). Not if you are a government official, though. After all, a politician wouldn't be overtly political.
This message has been edited 3 time(s).