Legal, I don't know; but tacky yes. My corporation makes it a point to stay out of politics; atleast where the employees are concerned.
The corporation for which I work sent out email to all employees right before the last couple of elections, but they were non-partisan - - just stated that it was important to vote and everyone should vote.