The mapping part (IP/netblock --> email) might not be illegal in the USA, but I'm pretty sure that sending users unsolicited emails after visiting a website is.
That's just a guess on my part. I'd love to hear from someone better versed on the law about the legality of that email.
Opt In is a cultural idea, not a legal one.