It's not the right forum, but you're already here, what the heck.
It's not illegal in the sense that a police officer is going to show up and arrest you. And it doesn't violate any employment laws.
However, whether it is "legal" or not, if your employer finds it to be an inappropriate use of company e-mail, you can be disciplined or fired for it, and the employer will be acting legally as well.