If you mailed it, it’s not illegal.
I worked for the post office 20 years.😃
You can mail something that's legal in one state to another state where it's illegal.
You can mail something that's illegal everywhere.
It's only illegal when you get caught.
Having said that.... what I mailed was legal, but not on an airplane.