How do you tell that it is categorically illegal to send unsolicited emails of any type?
Of course, you realize that could, at an extreme, mean that you cannot send a personal email to someone else you have previously not corresponded with.
Spamming refers to sending unsolicited email. Sending unsolicited emails isn't illegal; sending unsolicited emails that do not adhere to the law is illegal in America.