Is emailing a batch file that opens itself endlessly in a zip file illegal?

Yes. but not if the person receiving it asked you to send it